How do you read the .prof files generated by web2py's profiler?
Asked Answered
S

2

6

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).

Superscribe answered 14/10, 2014 at 22:44 Comment(1)
I have not used the web2py -F option. I tried the profiling option mentioned in this link, and it seemed to work: vrplumber.com/programming/runsnakerunDorinda
S
5

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!

Superscribe answered 15/10, 2014 at 0:13 Comment(0)
M
3

snakeviz is a module/binary to view and generate cprofile .prof files. Recommended by the search engine. I really like its Sunburst plot.

https://jiffyclub.github.io/snakeviz/

Majka answered 4/2, 2019 at 4:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.