const BasePath = "/debug/pprof"
BasePath is the base path to match for all pprof requests.
This section is empty.
NewMux returns a new http.ServeMux that routes pprof requests. It pretty much copies what the std lib pprof does on init: https://golang.org/src/net/http/pprof/pprof.go#L67
Handler is a simple struct whose ServeHTTP will delegate pprof endpoints to their equivalent net/http/pprof handlers.