Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Treemap visualisation view for Python profiler output?

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

kcachegrind Callee Map View

like image 753
Luke Stanley Avatar asked May 26 '11 17:05

Luke Stanley


2 Answers

This looks like it might do what you want

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

like image 133
bear24rw Avatar answered Sep 28 '22 08:09

bear24rw


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:

  • Profile a script using hotshot and kcachegrind
  • Django profiling with hotshot and kcachegrind
like image 37
samplebias Avatar answered Sep 28 '22 07:09

samplebias