This talk will give on overview over some common problems related to profiling and debugging Python applications (especially desktop-based ones). The following subjects will be covered:
- Debugging of memory leaks (circular references,
__del__, weakref, garbage collector, etc.)
- Python code profiling (
profile/hotshots/cProfile, design of small tests, etc.)
- Profiling of C/C++ extensions (usage of valgrind, fast binding through
ctypes for profiling)
- Fast rewriting of Python code into C/C++ for optimization.
- Step-by-step debugging of C/C++ extension under Windows (how to setup Visual Studio for debugging, how to see a traceback in case of a unexpected segfault, etc.)