Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Generate the profile:
- $ python -m cProfile -o phoney.cprof phoney.py
- Then, transform it into something readable by Kcachegrind:
- $ python pyprof2calltree.py -k -i /home/para/dev/metis_unicorn/script/phoney.cprof
- Or read it directly using RunSnakeRun
- Bear in mind that cProfile does very badly with multi-process.
- Ressources:
- https://julien.danjou.info/blog/2015/guide-to-python-profiling-cprofile-concrete-case-carbonara
- https://stackoverflow.com/questions/582336/how-can-you-profile-a-script
- http://lanyrd.com/2013/pycon/scdywg/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement