If I run web2py with the -F option, it will generate a .prof file. How do I read the contents of this file? Hotshot doesn't appear to work (I tried RunSnakeRun as well).
Asked
Active
Viewed 1.2k times
2 Answers
2
Web2py uses cProfile; I found something that will load the cProfile generated file and spit out output to a webpage:
http://ymichael.com/2014/03/08/profiling-python-with-cprofile.html
pip install cprofilev
, then run cprofilev on the .prof file. Enjoy!

Chris
- 5,876
- 3
- 43
- 69
2
snakeviz
is a module/binary to view and generate cprofile .prof files. Recommended by the search engine. I really like its Sunburst plot.

laviex
- 593
- 7
- 13