diff --git a/net/ghttp/ghttp_server_pprof.go b/net/ghttp/ghttp_server_pprof.go index 632feb6c885..eb37f46261a 100644 --- a/net/ghttp/ghttp_server_pprof.go +++ b/net/ghttp/ghttp_server_pprof.go @@ -26,7 +26,7 @@ const ( // StartPProfServer starts and runs a new server for pprof. func StartPProfServer(port int, pattern ...string) { s := GetServer(defaultPProfServerName) - s.EnablePProf() + s.EnablePProf(pattern...) s.SetPort(port) s.Run() }