##// END OF EJS Templates
speedTools.bash updated and tested
Miguel Valdez -
r795:a852583c4e96
parent child
Show More
@@ -1,8 +1,11
1 #Use this script in order to find the slowest module or function in your python code.
2 #Reference: http://lukauskas.co.uk/articles/2014/02/12/how-to-make-python-faster-without-trying-that-much/
3
1 4 #!/bin/sh
2 5
3 filename = "testRawData.py"
4 output = "output"
6 script = "testRawData.py"
7 output = "profile.pdf"
5 8
6 python -m cProfile -o $output $filename
9 python -m cProfile -o profile.pstats $script
7 10
8 gprof2dot -f pstats $output.pstats | dot -Tpng -o $output.png No newline at end of file
11 gprof2dot -f pstats profile.pstats | dot -Tpdf -o $output No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now