Skip to content

Instantly share code, notes, and snippets.

@diyan
Last active December 15, 2015 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diyan/5212551 to your computer and use it in GitHub Desktop.
Save diyan/5212551 to your computer and use it in GitHub Desktop.

Python. Profiling

Perfomance profiling

profile, cProfile, and pstats – Performance analysis of Python programs. - Python Module of the Week - http://www.doughellmann.com/PyMOTW/profile/

Pympler is a development tool to measure, monitor and analyze the memory behavior of Python objects in a running Python application. http://packages.python.org/Pympler/index.html

psutil - A cross-platform process and system utilities module for Python - Google Project Hosting - http://code.google.com/p/psutil/

Documentation - psutil - Documentation - A cross-platform process and system utilities module for Python - Google Project Hosting - http://code.google.com/p/psutil/wiki/Documentation

Memory profiling

John Arbash Meinel's Bazaar Blog: Memory Debugging with Meliae - http://jam-bazaar.blogspot.com/2009/11/memory-debugging-with-meliae.html

John Arbash Meinel's Bazaar Blog: Step-by-step Meliae - http://jam-bazaar.blogspot.com/2010/08/step-by-step-meliae.html

NEVERFEAR.org - Investigating memory leaks in Python - http://neverfear.org/blog/view/155/Investigating_memory_leaks_in_Python

Meliae in Launchpad - https://launchpad.net/meliae

Profiling. Visualize results

Profiling Python codes with KCacheGrind — Fernando Pérez - http://www.fperez.org/py4science/profiling/index.html

Screenshot Tour - http://kcachegrind.sourceforge.net/html/Screenshots.html

RunSnakeRun Python (c)Profile Viewer - http://www.vrplumber.com/programming/runsnakerun/

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