Introduction to Python Profiling
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.