Documentation ¶
Index ¶
Constants ¶
View Source
const BasePath = "/debug/pprof"
BasePath is the base path to match for all pprof requests.
Variables ¶
This section is empty.
Functions ¶
func NewMux ¶
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
Types ¶
type Handler ¶
type Handler struct { Next httpserver.Handler Mux *http.ServeMux }
Handler is a simple struct whose ServeHTTP will delegate pprof endpoints to their equivalent net/http/pprof handlers.
Click to show internal directories.
Click to hide internal directories.