SZanlongo
8/3/2016 - 3:35 PM

Python Profiling Visualization Tool

Python Profiling Visualization Tool

SnakeViz

SnakeViz is a viewer for Python profiling data that runs as a web application in your browser.

Installation

pip install snakeviz

Starting SnakeViz

If you have generated a profile file called program.prof you can start SnakeViz from the command line:

snakeviz program.prof

Generating Profiles

You can use the cProfile module at the command line to create a profile file for a script:

python -m cProfile -o program.prof my_program.py