From 7fc447fb5c9021d3ec58d91a5c104d7dc87038a8 Mon Sep 17 00:00:00 2001 From: Wilson Wang Date: Wed, 3 Mar 2021 16:01:04 -0800 Subject: [PATCH] debugutil: Remove extra space in trace handler route debugutil: Remove extra space in trace handler route. To use trace, user needed to escape the extra space and the extra space needs to be removed. --- pkg/debugutil/pprof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/debugutil/pprof.go b/pkg/debugutil/pprof.go index 8d5544a3d..22c2e1ee5 100644 --- a/pkg/debugutil/pprof.go +++ b/pkg/debugutil/pprof.go @@ -36,7 +36,7 @@ func PProfHandlers() map[string]http.Handler { m[HTTPPrefixPProf+"/profile"] = http.HandlerFunc(pprof.Profile) m[HTTPPrefixPProf+"/symbol"] = http.HandlerFunc(pprof.Symbol) m[HTTPPrefixPProf+"/cmdline"] = http.HandlerFunc(pprof.Cmdline) - m[HTTPPrefixPProf+"/trace "] = http.HandlerFunc(pprof.Trace) + m[HTTPPrefixPProf+"/trace"] = http.HandlerFunc(pprof.Trace) m[HTTPPrefixPProf+"/heap"] = pprof.Handler("heap") m[HTTPPrefixPProf+"/goroutine"] = pprof.Handler("goroutine") m[HTTPPrefixPProf+"/threadcreate"] = pprof.Handler("threadcreate")