Chapter 4

Go Runtime Tracing & Observability

Use runtime/trace and assembly inspection for deep observability

✓ Use runtime/trace ✓ Understand scheduler traces ✓ Examine generated assembly
1
Runtime Tracing
Use runtime/trace to examine goroutine scheduling and find hidden bugs like the Go 1.12 darwin syscall bug
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#36 +30 XP advanced
2
Scheduler and GC Debugging
Use GODEBUG=schedtrace and scheddetail to examine the Go scheduler state
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#38 +25 XP advanced
3
Assembly Examination
Use go build -gcflags='-S' to examine generated assembly and understand compiler optimizations
orijtech.github.io/talks/2021/12/02/amex/go_machine_guides.htm#40 +30 XP advanced