Skip to content

Commit

Permalink
Added pyprof.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerpedjiev committed May 31, 2016
1 parent 387e19d commit b3b778c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyprof.sh
@@ -0,0 +1,7 @@
#!/bin/bash
#https://github.com/martinxyz/config/blob/master/scripts/pyprof
set -e # exit on error
rm -f profile.png profile.dat
python -m cProfile -o profile.dat $@
gprof2dot.py -f pstats profile.dat | dot -Tpng -o profile.png
eog profile.png

0 comments on commit b3b778c

Please sign in to comment.