-
Notifications
You must be signed in to change notification settings - Fork 113
Profil flask app #45
Comments
There's nothing special to profile a Flask app if you can run the Web server by a Python file. # run_server.py
from hello import app
if __name__ == '__main__':
app.run(port=5000) $ profiling live run_server.py If you use $ FLASK_APP=hello.py profiling live -m flask run -- -h 0.0.0.0 -p 5555 |
I was able to run the profiler but the output only shows click and werkzeug steps. Cant really see which endpoint/which model method calls are being the bottleneck. command I used; |
@sinanm89 Would you try |
Hah! That worked. I actually have the post methods now. Thanks so much for your hard work and suggestions @sublee , I'd say you can close this issue. reiterating the working command to profile a flask app for anyone else stumbling around;
|
I'm running my app through uwsgi in a docker container, where do I run |
Hello, is there anyway that I can profile a flask app with profiling?
The text was updated successfully, but these errors were encountered: