Skip to content

Instantly share code, notes, and snippets.

@jassinm
Created March 21, 2012 19:29
Show Gist options
  • Save jassinm/2151725 to your computer and use it in GitHub Desktop.
Save jassinm/2151725 to your computer and use it in GitHub Desktop.
python profiling
python -m cProfile -o rep.prof <script.py>
python -c 'import pstats; p=pstats.Stats('rep.prof'); p.sort_stats('cumulative').print stats(10)'
@jassinm
Copy link
Author

jassinm commented Mar 21, 2012

use runsnakerun to get line by line output :

pip install RunSnakeRun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment