This commit is contained in:
Jay 2018-10-11 11:22:57 +08:00
parent daaef4a5f2
commit bbea6a8fb3

View File

@ -105,5 +105,8 @@ func SetRoutes(r *gin.Engine) {
} }
// set pprof router // set pprof router
pprof.Register(r) popts := &pprof.Options{
RoutePrefix: "/dev/pprof",
}
pprof.Register(r, popts)
} }