Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Wed, 14 Jan 2004
Visualizing Python profiling data with kcachegrind
Today I started to do some work on the big RSS feed test that I've been working on for Chandler. While Googling around, I discovered this
announcement of a method for using kcachegrind to give you a nice visualization of the profiler data produced by Python's hotshot profiler. It requires KDE libraries, so I decided to try to get this working on Linux first, being afraid to try and fink the necessary libraries for KDE. Turns out that there is a kcachegrind package for debian (in unstable). Unfortunately, that version doesn't include the scripts needed to make this work. So I grabbed the unstable version of kcachegrind, unwrapped it and used the script in there. Every thing seems to work just fine, and its a nice way to manipulate the profile data. Thanks to X11.app, I can at least view the visualization on the Mac. I'm not sure if I'm up for KDE libs on the Mac just yet.
On tip if you decide to do this. The input file to kcachegrind must be of the form cachegrind.out.NN where NN is a number. That was really a nasty pain to figure out.
[23:03] |
[computers/programming/python] |
# |
TB |
F |
G |
0 Comments |
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk