~/talk

Tracing, Profiling & Debugging in Production (eBPF)

Talkat PyCon AU 2019 · 2019-08-02..08-06· [observability, security]
links:none on file
slides:none on file

Live-attach profilers let you inspect running Python with no restart: py-spy (ptrace-based, samples ~100 Hz) produces interactive SVG flame graphs and shows which functions dominate; ptrace/eBPF approaches can read CPython frame structs to get exact stacks; pysnooper traces line-by-line with variable values for precise debugging; eBPF/BPFtrace can count every invocation in-kernel with very low overhead but needs a recent kernel and Python build supporting USDT probes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:03Overview
  3. 3:45Profiling
  4. 6:00Function Hierarchy
  5. 6:45InProcess Profiling
  6. 8:42External Profiling
  7. 10:20Python Thread State
  8. 13:07PiSpy
  9. 16:40PiFlame
  10. 20:34PI Snooper
  11. 24:43Trace Point
  12. 28:21Poll Results
~/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.