This commit is contained in:
root committed 2018-10-11 11:22:57 +08:00
1 parent daaef4a5f2
commit bbea6a8fb3
1 file changed
+4 -1
+4 -1
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)
}