~/talk

From PyPerf to py-spy - Everything You Need to Know About Python Profilers

Talkat PyCon Israel 2022 · 2022-06-28..06-29· [python, observability]
slides:none on file

Compares deterministic call-tracing with sampling via stack traces and shows how flamegraphs turn millions of samples into actionable hotspots. Describes py-spy (reads target Python process memory from a separate process) as low-overhead and non-intrusive but blind to native work that releases the GIL unless it pauses or trusts the GIL state. Demonstrates eBPF / PyPerf approaches that capture running-thread state and native stacks on Linux, producing accurate flamegraphs suitable for production; notes eBPF isn’t available on Windows.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Why profile code
  3. 2:26Deterministic profiling
  4. 4:55Flame graphs
  5. 7:38Sampling with Py-Spy
  6. 9:22Py-Spy example
  7. 11:03GIL limitations
  8. 12:01EBPF profilers
  9. 14:51Perf and takeaways
  10. 18:12Q&A
  11. 20:33Conclusion
~/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.