~/talk

Profiling Request Latency with Critical Path Analysis

Talkat GopherCon 2025 · 2025-08-26..08-28· [go, observability]
slides:none on file

Uses the Go execution tracer and a backward critical path analysis to turn raw scheduler events into per-request profiles that expose off‑CPU waits—mutex contention, channel bottlenecks, scheduling latency, backoff sleeps and syscalls—without instrumentation. Demonstrates heuristics for lost edges and stack‑stitching, aggregates many requests into p50/p99 profiles, and reports production costs and gains (tracer overhead cut from ~10–20% to 1–2%). Shows a 110 ms request with 214 ms total mutex time and explains how the algorithm isolates what truly affects latency.

AI-written summary · about

  1. 0:00Profiling request latency
  2. 1:30Profiling in production
  3. 4:00Limitations of profiling tools
  4. 8:12Execution tracer for context
  5. 13:09Critical path analysis
  6. 18:31Challenges in analysis
  7. 21:19Real-world results
  8. 23:25Future directions
~/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.