7

Is there a profiler for Python that can render something like Kcachegrind's Callee map view?

kcachegrind Callee Map View

Luke Stanley
  • 1,274
  • 1
  • 16
  • 32
  • 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 Answers2

4

This looks like it might do what you want

http://www.vrplumber.com/programming/runsnakerun/

bear24rw
  • 4,367
  • 2
  • 20
  • 10
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