Reading GC Traces Under Load
Diagnosing garbage-collection pressure with `GODEBUG=gctrace=1` — a trace line decoded field by field, real healthy and pathological traces side by side, and what `GOGC` measurably buys.
GODEBUG=gctrace=1 read like an EKG: a real trace line decoded field by field, real churn and leak traces side by side (flat live heap vs. a climbing one), and GOGC=400 measured — 67% fewer cycles, GC CPU 7.1%→2.4%, and 82% more useful work for 12 MB of heap.