From bbea6a8fb33a890053608a94018d5fe957f2bc60 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 11 Oct 2018 11:22:57 +0800 Subject: [PATCH] fix --- router/routes/routes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/router/routes/routes.go b/router/routes/routes.go index d2b6d01..e5ba453 100644 --- a/router/routes/routes.go +++ b/router/routes/routes.go @@ -105,5 +105,8 @@ func SetRoutes(r *gin.Engine) { } // set pprof router - pprof.Register(r) + popts := &pprof.Options{ + RoutePrefix: "/dev/pprof", + } + pprof.Register(r, popts) }