A Pattern for Optimizing Go
Pprof is the standard way to profile Go applications that comes built in to go. The pprof package can expose via HTTP both memory and CPU usage across your application, as well as the running command line and contention information.