~/talk

Go Profiling from Bottom Up

Talkat GoLab 2021 · 2021-03-25..10-28· [go]
slides:none on file

Explains how Go produces stack traces and profiles: build embeds go pc line tab and DWARF, unwinding uses either frame pointers (fast, ~2–10% runtime overhead) or slow unwind tables, and symbolization maps PCs to source. Covers profilers: CPU uses SIGPROF at 100 Hz, heap samples ~1/512 KB sampling of allocations, block/mutex sampling tunable (recommend 10000 for block), and a block-profiler bias fix lands in Go 1.17. Mentions pprof format, Datadog continuous profiling work, perf/ebpf tradeoffs and a small ftprof prototype that demonstrates wall-clock profiling limitations.

AI-written summary · about

  1. 0:00Start
  2. 4:06Target audience
  3. 6:23Go translates between source code and assembly
  4. 7:06Go translates between assembly and source code
  5. 7:25Assembly to source code translation information
  6. 8:05Running a Go Binary
  7. 11:50Frame Pointer Unwinding
  8. 12:19Frame Pointers
  9. 15:21Unwind Tables
  10. 17:44Unwinding Recap
  11. 18:42Symbolization
  12. 19:12Stack Traces Recap
  13. 19:36Stack traces: Future improvements
  14. 24:49Tracing: Capture all Events
  15. 25:04Go Tracer
  16. 25:39Profiling: Timer based sampling
  17. 26:30CPU Profiler
  18. 28:40Goroutine Profiler
  19. 30:20Tracing + Profiling: Summarizing a Subset of Events
  20. 31:15Heap Profiler
  21. 33:51Block Profiler
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.