Skip to content

Instantly share code, notes, and snippets.

@scraperdragon
Created June 5, 2013 16:53
Show Gist options
  • Save scraperdragon/5715431 to your computer and use it in GitHub Desktop.
Save scraperdragon/5715431 to your computer and use it in GitHub Desktop.
Python profile by lines, thanks to http://pythonhosted.org/line_profiler/
pip install line_profiler
kernprof.py -l worldbank.py
python -m line_profiler worldbank.py.lprof
# put @profile before the functions you care about
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment