Python profiliers

Checking the performance of python scripts

Install GraphViz: http://www.graphviz.org/download/

Install Grof2dot:: https://github.com/jrfonseca/gprof2dot

Run profile on the code.

python -m cProfile -o myLog.profile <myScript.py> arg1 arg2 ...

Run gprof2dot to convert the call profile into a dot file

gprof2dot -f pstats myLog.profile -o callingGraph.dot

Open with graphViz to visualize the graph

Example graph image