Skip to content

Instantly share code, notes, and snippets.

@mgoldey
Created October 20, 2017 21:31
Show Gist options
  • Save mgoldey/1538f1b3d5cddaeb33988be1b325dad0 to your computer and use it in GitHub Desktop.
Save mgoldey/1538f1b3d5cddaeb33988be1b325dad0 to your computer and use it in GitHub Desktop.
for i in test*.py; do export j=`echo $i | sed 's/.py/.profile/g'`; python2 -m cProfile -o $j $i ; python2 -c "import pstats ; print(pstats.Stats('$j').sort_stats('tottime').print_stats(20))"; done >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment