I just added a Python category to Chime, in addition to the Ruby category added earlier.
A PHP category is coming soon. These are all scripts from the DTraceToolkit. Chime has gotten pretty flexible in terms of supporting script options, so I was able to merge the py_cpudist.d and py_cputime.d scripts into py_calldist.d and py_calltime.d, which differ only in measuring on-CPU time instead of elapsed time.
The prompt defaults to elapsed time. Here's a trace of a Mercurial command:
It shows time in two ways side-by-side: the entire time from entry to return including time spent in other functions, and time in the current stack frame excluding time spent calling other functions. Here are some other displays showing total bytes allocated alongside a malloc() size distribution, by function and by stack trace.
The tagged stack traces are viewable by accessing a right-click popup menu on one or more selected rows.
So have fun tracing your Python apps! Chime is downloadable here.
( Dec 19 2008, 07:45:25 PM PST / Dec 19 2008, 07:45:25 PM PST )
Permalink
Trackback: http://blogs.sun.com/tomee/entry/chime_python_category