~/talk

Building a Go Profiler Using Go

Talkat GopherCon Europe 2022 · 2022-07-28..07-31· [observability, go]
slides:none on file

Builds a live profiler that uses eBPF programs attached to perf events to sample stacks every 10s, collects per-CPU maps from kernel space, and converts raw stack IDs into pprof output compatible profiles for analysis. Uses libbpf/bpfgo tooling and requires sudo because kernel verifier and JIT run the probes. Covers symbolization using Go’s pc/line table (avoids stripping), cross‑build challenges for BPF objects, and a production system called Parka that continuously profiles Go (and C++/Rust) workloads.

AI-written summary · about

  1. 0:00Intro
  2. 2:00About me
  3. 3:00What is profiling
  4. 4:00Types of profiling
  5. 9:50Continuous profiling
  6. 14:40Extended Berkeley Packet Filtering
  7. 16:20Second Demo
  8. 20:20Code
  9. 24:50CrossCompile
  10. 25:43Symbolization
  11. 26:30Unwinding
  12. 29:23Project Overview
  13. 31:25Roadmap
~/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.