intel / intel/gprofiler

gProfile shows only [unknown] frames (Python, Docker)

Open
#457 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
826
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I'm trying a very basic Flask-Python app:

```python
from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello, World!'
```

Deployed it in a Docker container, then added gProfiler to Docker as described in docs: https://docs.gprofiler.io/about-gprofiler/installing-gprofiler/docker

After initiating my code to run several times, all I see in the profile is calls to "[unknown]" – no trace of calls to `hello_world` anywhere (even, though I have "Hello, World!" printed multiple times – I know the code was executed):
Screenshot 2022-09-04 at 16 43 20
Yellow blocks related to Python only contain calls to Flask.

I also tried a couple of open-source projects cloned from various sources – the result is the same.

I'm using macOS 12.5.1 on Apple M1, Python 3.7.1, and Docker Desktop 4.12.0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.