[link] As fun as those are to look at, I want to quickly find out where the bottlenecks are; whether they're in my code or not; and any other clues that will help me fix them. I couldn't find anything that performs further visualization on python profile output. So I wrote a quick one with output like this. It parses profiler output back in for easiest use with "twistd -p", which means it only has base names of .py files. I attempted to color local files by their top dir, which helps a little. The next big step is to use the profile output directly. I also might make the report viewer into a full web server so it can do interesting sorts and filters. Or I might tag up the data well enough and do the UI in javascript. That would be harder to write, but it would mean that the report could be a standalone file to archive, share, etc. An example of "interesting filter" would be to show one function and all the deeper calls (as much as we can tell with the profile data).
2006-12-25T16:01:06 Visualizing python profile results:
![]() | Unless otherwise noted, all content licensed by Drew Perttula under a Creative Commons License. |