An interactive browser for Python's cProfile output in pstats format.
Python's cProfile module is great for collecting profiling data on Python programs, but interpreting the output isn't easy. This tool allows for browsing this data in a simple web-based tool.
Based on the original released by IMVU with some enhancements and fixes.
There are no prerequisites for running pstats_viewer other than Python itself.
Running pstats_viewer on the cProfile output file of your choice will start a local web server on port 4040:
pstats_viewer.py <stats.dat>
An alternate port number may also be provided:
pstats_viewer.py <stats.dat> <port_number>