const BasePath = "/debug/pprof"
BasePath is the base path to match for all pprof requests.
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.
ServeHTTP handles requests to BasePath with pprof, or passes all other requests up the chain.