1

Normally I would use the @profile decorator and run the script with kernprof -l. How can I do this for code that is executed through a uwsgi server?

It looks like you can add functions to be profiled through the line profiler api: LineProfiler(my_fun). Maybe that will work? How would I dump the results to a file?

jmilloy
  • 7,875
  • 11
  • 53
  • 86

0 Answers0