Chapter 3

Go CPU & Memory Profiling

Learn to profile your Go programs with pprof to find performance bottlenecks

✓ Use pprof for CPU profiling ✓ Analyze memory allocations ✓ Find hot code paths
1
Introduction to pprof
Learn the basics of Go's built-in profiler - sampling at 100Hz to find where CPU time is spent
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#11 +25 XP intermediate
2
Real World Profiling: $150B Bug
See how profiling found a bug that affected a $150+B market cap ecosystem - O(n²) in a hot loop
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#12 +35 XP advanced
3
Memory Allocation Profiling
Profile heap allocations to reduce GC pressure and memory usage
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#15 +25 XP intermediate