Introduction to Python Profiling

[VIDEO HAS ISSUES: Ambient mic used incorrectly; results in poor/echoing audio] Python's implementation is slow, but you can often write fast Python if you know how to profile your code effectively. This presentation will show you how to use the built-in cProfile module to capture profile data, both in simple scripts and more complex GUI environments. We'll look at how to interpret the profile/cProfile reports as well as a few external tools to make the reports easier to understand. We'll discuss how to make profiling an effective tool for you and some common "hot spots" you'll discover in Python code.

More episodes of PyCon US Videos - 2009, 2010, 2011

Featured episodes in Learning

PyCon US Videos - 2009, 2010, 2011

PyCon is an activity of the Python Software Foundation, a 501c3 non-profit organization. To support future conferences, please donate to the Foundation at www.python.org/psf/donations . Video and audio material from PyCon are licensed under the Creative Commons CC-BY-NC-SA license . This means you can incorporate excerpts or entire recordings in your own non-commercial projects, as long as you credit the speaker and you CC-license the finished project.