[Flask] Profile/Coverage of Flask bits behind uWSGI?

Skip Montanaro skip.montanaro at gmail.com
Tue Mar 13 11:09:54 EDT 2018


I have a Flask app sitting behind uWSGI which I'd like to profile, but
it's not clear to me where I hook into things. I found this page
referencing werkzeug.contrib.profiler:

http://werkzeug.pocoo.org/docs/0.14/contrib/profiler/

but my uWSGI usage is so simple that I don't explicitly create a WSGI
application object (nor have I so far figured out how). I've got a
Flask instance, Is there some easy way to hook into cProfile or
coverage at the Flask level and just ignore uWSGI altogether?

Thx,

Skip Montanaro


More information about the Flask mailing list