Go’s pprof package is frequently used for heap and CPU profiles, but a little used feature of the package is being able to create custom profiles. Custom profiles are useful for tracking down leaked resources and troublesome stack traces that are abusing a library’s API. Profile Link to heading From the godoc for pprof itself: A Profile is a collection of stack traces showing the call sequences that led to instances of a particular event, such as allocation.