If we want to be able to use additional functionality by default, we can use the upstream pprof binary in order to extend the views we have with our profiles:
- We can retrieve this with an invocation of go get github.com/google/pprof. The pprof tool has a couple different invocation methods. We can use the report generation method to generate a file in the requested format (currently supported are the .dot, .svg, .web, .png, .jpg, .gif, and .pdf formats). We can also use the interactive terminal format in a similar way to what we did in the previous sections about CPU and memory profiling. The last and most commonly used method is using the HTTP server. This method involves hosting an HTTP server that includes much of the pertinent output in an easily digestible format.
- Once we have retrieved the binary via go get, we can invoke it with...