Is there a profiler for Python that can render something like Kcachegrind's Callee map view?
Asked
Active
Viewed 1,606 times
7
-
This is freaking cool. I guess you could do something like this by parsing an existing profiler's output and fiddling a bit with `pygame` or any other 2D graphics library. No idea if anyone already did that. – May 26 '11 at 17:46
-
Yeah, our brain's 'GPU' may be better with percentage visualisations than processing numbers. – Luke Stanley May 27 '11 at 02:53
-
See http://stackoverflow.com/questions/1896032/ on how to use cProfile with python and kCacheGrind. – Harley Holcombe Jun 26 '11 at 10:32
2 Answers
4
This looks like it might do what you want

bear24rw
- 4,367
- 2
- 20
- 10
-
This has been replaced by https://jiffyclub.github.io/snakeviz/ I think. – Andreas Mueller Jul 15 '18 at 21:07
2
If you are on Ubuntu (or have access to a host) you can convert the Python hotshot profiler's output into a form that KCachegrind can read. Check out the kcachegrind-converters
package hotshot2calltree command.
Here are some pages which reference using it for Python profiling:

samplebias
- 37,113
- 6
- 107
- 103