network: fix link in pprof

This commit is contained in:
Evgenii Stratonikov 2019-12-17 14:49:28 +03:00
parent 27a5825d42
commit 014be31a0a

View file

@ -10,7 +10,7 @@ type PprofService Service
// NewPprofService created new service for gathering pprof metrics. // NewPprofService created new service for gathering pprof metrics.
func NewPprofService(cfg Config) *Service { func NewPprofService(cfg Config) *Service {
handler := http.NewServeMux() handler := http.NewServeMux()
handler.HandleFunc("/debug/pprof", pprof.Index) handler.HandleFunc("/debug/pprof/", pprof.Index)
handler.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) handler.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
handler.HandleFunc("/debug/pprof/profile", pprof.Profile) handler.HandleFunc("/debug/pprof/profile", pprof.Profile)
handler.HandleFunc("/debug/pprof/symbol", pprof.Symbol) handler.HandleFunc("/debug/pprof/symbol", pprof.Symbol)