Book Image

Mastering Python High Performance

Book Image

Mastering Python High Performance

Overview of this book

Table of Contents (15 chapters)


RunSnakeRun is yet another GUI tool to help us visualize the profiling output and, in turn, help us make sense of it. This particular project is a simplified version of KCacheGrind. Whereas the latter is also useful for C and C++ developers, RunSnakeRun is specifically designed and written for Python developers.

Earlier, with KCacheGrind, if we wanted to plot the output of cProfile, we needed an extra tool (pyprof2calltree). This time we won't. RunSnakeRun knows how to interpret it and display it, so all we need to do is call it and pass in the path to the file.

The features provided by this tool are as follows:

  • Sortable data grid views with fields, such as:

    • function name

    • number of total calls

    • cumulative time

    • filename and line number

  • Function-specific information, such as all callers of this function and all callee's of this function

  • Square map of the call tree with size proportional to the amount of time spent inside each function


In order to install this tool, you have to...