PProfUI - Python Profiler User Interface


screenshot

It displays the profile stats in a window with a menu for changing the sort order.  Also, when you particular function it will display the callers of the function in the top of the window and the callees in the bottom.  You can then follow the call stack up or down by "centering" on either a particular caller or callee.  This is similar to the "Butterfly View" in the IRIX cvd debugger.  The "list all" button will return to the initial full-list display.

pprofui.py - 4k

Note: to generate profile data, you can do the following:
Or you can just embed the profile.run call directly in your program.  Then, to view the profile data, run 'pprofui.py profile.dat'.

Thanks to Drew Gulino for adding horizontal scroll bars.
Thanks to David Ross for helping update for python 2.5.

Feedback appreciated

Brent Burley