Presentation
SnakeViz
pip install snakeviz
python -m cProfile -o cprofile.dat <PROGRAM>.py
snakeviz cprofile.dat
CallGraph
sudo apt-get install graphviz
git clone https://github.com/jrfonseca/gprof2dot
ln -s "$PWD"/gprof2dot/gprof2dot.py ~/bin
cd $PROJECT_DIR
gprof2dot.py -f pstats cprofile.dat | dot -Tsvg -o callgraph.svg