go tool trace

1 · Pusher · April 6, 2017, midnight
Do you want to know what your Go program is really doing? go tool trace can show you: it visualizes all the runtime events over a run of your Go program, in exquisite detail. This under-documented tool is one of the most useful tools in the Go ecosystem for diagnosing performance problems such as latency, poor parallelisation, and contention. In my previous blog post I mentioned that we used go tool trace at Pusher to track down long pause times in Go’s garbage collector. In this blog post, I’ll...