3 ms·
Go's built-in performance analysis tooling is so excellent. The profiler, which can do CPU, memory, goroutines, blocking, etc. and can display all of that as a
by cube2222 4y ago
Go's built-in performance analysis tooling is so excellent.
The profiler, which can do CPU, memory, goroutines, blocking, etc. and can display all of that as a graph or a flame graph, as well as `go tool trace` which gives you a full execution trace, including lots of details about the work the GC does. All that with interactive local web-based viewers.
Performance optimization is always so fun with it.
- timbray 4y agoYep, but you know, I can't stand that web-based viewer, it's got this hair trigger zoom and if I breathe in the direction of the mouse the graph goes hurtling in or out. I used to look at the PDFs but now I just stay in GoLand, which give you everything you need.