Where did uWSGI put its profiler file?

I'm using uWSGI with the "--profiler" flag enabled, but I can't find the output file (if any), and (like many things in uWSGI) it's not properly documented.

+3


source to share


1 answer


A useful trick is to use the uWSGIs logger to filter the profiler logs into their own file:



uwsgi \
    << other uwsgi options >> \
    --logger profiler file:/path/to/profile.log \
    --log-route profiler uWSGI Python profiler

      

0


source







All Articles