In this segment I'll show how to use pprof to find goroutine leaks and to optimize CPU usage. I'll also give a quick demonstration of using metrics (Prometheus, in this case) as a debugging tool.
Slides at: https://github.com/matt4biz/go-class-slides/blob/trunk/xmas-2020/README.md
Code at: https://github.com/matt4biz/go-class-profile