~/talk

Python Profiling State of the World

Talkat PyCon US 2023 · 2023-04-19..04-27· [observability]
links:none on file
slides:none on file

Survey of concrete tools and results rather than theory: cProfile and profile are shown with measured overheads — 15% overhead for cProfile and ~106% for the pure‑Python profile; sampling profilers (py-spy, pyinstrument, Austin) run out‑ or in‑process with different tradeoffs and sampling rates, e.g. 9% at 100Hz / ~25% at 1kHz for py‑spy; Flask middleware example to capture per‑request profiles, visualizations via flamegraphs and speedscope, and a production system that aggregates profiles and surfaces automated insights (Sentry in‑process profiler).

AI-written summary · about

  1. 0:00Start
  2. 2:17What is a profiler?
  3. 3:38A brief history of profiling
  4. 10:49Deterministic vs. sampling profilers
  5. 14:42Visualizing profile data
  6. 47:07Sentry Profiling+
~/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.