News for hackers. Stuff that matters.
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.

Re:Profiling Go Programs (CLI Edition) by everybodyknows on Saturday April 08, 2023 @09:55AM (#35493129)
Needlessly complicated for most CLI applications. A better starting point:

https://pkg.go.dev/runtime/pprof#hdr-Profiling_a_Go_program

Re:Profiling Go Programs (CLI Edition) by platzhirsch on Sunday April 09, 2023 @01:26AM (#35500261)
On this topic I highly recommend Bill Kennedy's talk: https://youtu.be/6qAfkJGWsns

It helped me to step upy profiling game quite a bit.