gProfile shows only [unknown] frames (Python, Docker)
- 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):
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
Assessment
This issue has not been assessed yet.