Created
March 21, 2012 19:29
-
-
Save jassinm/2151725 to your computer and use it in GitHub Desktop.
python profiling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m cProfile -o rep.prof <script.py> | |
python -c 'import pstats; p=pstats.Stats('rep.prof'); p.sort_stats('cumulative').print stats(10)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use runsnakerun to get line by line output :