Re:Profiling Go Programs (CLI Edition)
by cube2222 on Saturday April 08, 2023 @08:23AM
(#35492559)
Go profiling tools are absolutely excellent!
One more tool, which the OP surprisingly doesn't mention, is `go tool trace` for execution tracing. It's really useful, esp. when debugging GC behavior or CGO calls locking up threads.
One more tool, which the OP surprisingly doesn't mention, is `go tool trace` for execution tracing. It's really useful, esp. when debugging GC behavior or CGO calls locking up threads.
https://pkg.go.dev/runtime/pprof#hdr-Profiling_a_Go_program
It helped me to step upy profiling game quite a bit.