pprof With a single import _ "net/http/pprof" you can add profiling endpoints to a HTTP server. package main import ( "fmt"