Python Profiling Visualization Tool
SnakeViz is a viewer for Python profiling data that runs as a web application in your browser.
pip install snakeviz
If you have generated a profile file called program.prof you can start SnakeViz from the command line:
snakeviz program.prof
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