~/talk

Go profiling from bottom up

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

Go tooling produces CPU, heap, mutex, block and goroutine profiles in pprof format and uses setitimer 100Hz with SIGPROF for CPU sampling (risk of bias past ~250Hz and random-thread delivery). Binaries include frame pointers added by default (~2% overhead) and two unwind/symbol tables (go_pc_line_tab used by runtime, DWARF used by external tools). Heap sampling targets ~512KB Poisson per allocation, block/mutex sampling is post-event (block bias fixed in Go 1.17), goroutine dumps stop-the-world (2–10μs per goroutine), and thread_create profiling is currently broken.

AI-written summary · about

  1. 0:00Start
  2. 3:49Target audience
  3. 6:06Go translates between source code and assembly
  4. 6:49Go translates between assembly and source code
  5. 7:08Assembly to source code translation information
  6. 7:48Running a Go Binary
  7. 8:54Stack Traces Umiding
  8. 11:33Frame Pointer Unwinding
  9. 12:02Frame Pointers
  10. 15:04Unwind Tables
  11. 17:27Unwinding Recap
  12. 18:25Symbolization
  13. 18:55Stack Traces Recap
  14. 19:19Stack traces: Future improvements
  15. 24:32Tracing: Capture all Events
  16. 24:47Go Tracer
  17. 25:22Profiling: Timer based sampling
  18. 26:13CPU Profiler
  19. 28:23Goroutine Profiler
  20. 30:03Tracing + Profiling: Summarizing a Subset of Events
  21. 30:58Heap Profiler
  22. 33:34Block 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.