perf: 调整打包目录
This commit is contained in:
1 parent
b3bb2d788f
commit
c20a3e5f04
187 files changed
+121
-13
No files matched your search
@@ -192,7 +192,7 @@ func loadDev(app *gin.Engine) {
|
||||
|
||||
//性能分析监控 Prometheus
|
||||
pprofEnabled := config.Get("pprof.enabled")
|
||||
if pprofEnabled != nil && pprofEnabled.(bool) {
|
||||
if parse.Boolean(pprofEnabled) {
|
||||
app.Use(ginprom.PromMiddleware(nil))
|
||||
app.GET("/metrics", ginprom.PromHandler(promhttp.Handler()))
|
||||
pprofAddr := config.Get("pprof.addr").(string)
|
||||
|
||||
Reference in new issue
Block a user