Debugging and profiling techniques

A session at EuroPython 2011

Wednesday 22nd June, 2011

9:00am to 10:30am (CET)

This talk will give on overview over some common problems related to profiling and debugging CPython applications (especially desktop-based ones).

The following subjects will be covered:

  • Debugging of memory/resource leaks (circular references, __del__, weakref, garbage collector, etc.). We will show in details how the memory management of Python objects work and we will show a few tricks to track memory leaks
  • Python code profiling (profile/hotshots/cProfile, design of small tests, etc.). We will show how to measure, profile, and analyse an application to spot performance problems and solve them.
  • Post-mortem step-by-step debugging of C/C++ extension under Windows. We will show how to setup Visual Studio for debugging, how to see a traceback in case of an unexpected segfault, and how to further debug and solve the crash.

This talk is aimed at intermediate Python programmers, who have already developed non-trivial Python applications but have never "jumped through" the interpreter abstraction layer. If you feel a little lost when you see a segfault from a Python program or you don't have a clear idea how memory is collected in Python, this talk is perfect for you.

About the speaker

This person is speaking at this event.
Giovanni Bajo

CTO @ Likes: C++, Python, security, optimizations. PyInstaller maintainer, EuroPython chair. GPG key: bio from Twitter

Coverage of this session

Sign in to add slides, notes or videos to this session

EuroPython 2011

Italy Italy, Florence

20th26th June 2011

Tell your friends!


Time 9:00am10:30am CET

Date Wed 22nd June 2011

Short URL

View the schedule



See something wrong?

Report an issue with this session