~/talk

Debugging and profiling techniques

Talkat EuroPython 2011 · 2011-06-20..06-26· [python, testing]
slides:none on file

Shows concrete steps to find and fix a real Python hotspot: uses a sampling profiler (cProfile/pyinstrument) to spot a function taking ~120ms per call, replaces an O(n^2) loop with an O(n) algorithm and drops it to ~15ms, and verifies with instrumentation timers and timeit. Compares wallclock and CPU counters, explains memory tracking on an 8GB test workload, and demos using perf/Visual Studio and simple flamegraphs to prove the change actually lowers latency and CPU use.

AI-written summary · about

  1. 0:00Introducere în debugging
  2. 10:56Primele pași în depanare
  3. 20:32Instrumentare și profilare
  4. 30:36Analiza erorilor comune
  5. 43:02Tehnici avansate de debugging
  6. 50:25Profilarea performanței
  7. 1:06:01Optimizarea sistemului
  8. 1:11:10Concluzii și resurse
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.