Closed pallix closed 7 years ago
gunicorn
runs your code in a subprocess which isn't under the control of kernprof
, so it will never work. From a quick perusal of its documentation, I don't see a flag to tell it to run all in the same process for development purposes (which is fine; that's not its job). You can probably use a simple script that uses wsgiref.simple_server.make_server()
to kick off your app instead when you need to do this profiling.
An error occurs when starting a gunicorn server with kernprof:
gunicorn.lprof
is then empty:I'm using
Python 3.4.3