Skip to content

Instantly share code, notes, and snippets.

@lanwen
Forked from jassinm/nosetests profiling
Created June 16, 2016 22:43
Show Gist options
  • Save lanwen/f714f02c4efdb3b55388fb53c0d551fd to your computer and use it in GitHub Desktop.
Save lanwen/f714f02c4efdb3b55388fb53c0d551fd to your computer and use it in GitHub Desktop.
nosetest profiling
nosetests --with-profile --profile-stats-file=nose.prof
python -c "import hotshot.stats ; stats = hotshot.stats.load('nose.prof') ; stats.sort_stats('time', 'calls') ; stats.print_stats(20)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment