pprof.go
func (mux *ServerMux) InitPProf(prefix string) {
	if prefix == "" {
		prefix = "/debug/pprof"
	}
	mux.HandleFunc(router.Wildcard(fmt.Sprintf("%s/*", prefix)),
		WrapHTTPHandlerFunc(pprofIndex(prefix)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/cmdline", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Cmdline)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/profile", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Profile)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/symbol", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Symbol)), nil)
}
func (mux *ServerMux) InitPProf(prefix string) {
	if prefix == "" {
		prefix = "/debug/pprof"
	}
	mux.HandleFunc(router.Wildcard(fmt.Sprintf("%s/*", prefix)),
		WrapHTTPHandlerFunc(pprofIndex(prefix)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/cmdline", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Cmdline)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/profile", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Profile)), nil)
	mux.HandleFunc(router.Simple(fmt.Sprintf("%s/symbol", prefix)),
		WrapHTTPHandlerFunc(http.HandlerFunc(pprof.Symbol)), nil)
}
// InitPProf registers pprof handlers to the ServeMux.
// The pprof handlers can be specified a customized prefix.