This commit is contained in:
Jay 2018-10-11 11:22:57 +08:00
parent daaef4a5f2
commit bbea6a8fb3
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}