From 297ae3d9bdf3bf26bb0cbc232b3efa75e74f7343 Mon Sep 17 00:00:00 2001 From: Dmytro Haidashenko Date: Thu, 21 Nov 2024 17:25:17 +0100 Subject: [PATCH] enable heap pprof (cherry picked from commit 4a68aa3ea3bd0ef73d18dbb2c0659508d2dd61cb) --- core/web/router.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/web/router.go b/core/web/router.go index 6e96b47981b..545feec71de 100644 --- a/core/web/router.go +++ b/core/web/router.go @@ -189,9 +189,7 @@ func metricRoutes(r *gin.RouterGroup, includeHeap bool) { pprofGroup.GET("/allocs", ginHandlerFromHTTP(pprof.Handler("allocs").ServeHTTP)) pprofGroup.GET("/block", ginHandlerFromHTTP(pprof.Handler("block").ServeHTTP)) pprofGroup.GET("/goroutine", ginHandlerFromHTTP(pprof.Handler("goroutine").ServeHTTP)) - if includeHeap { - pprofGroup.GET("/heap", ginHandlerFromHTTP(pprof.Handler("heap").ServeHTTP)) - } + pprofGroup.GET("/heap", ginHandlerFromHTTP(pprof.Handler("heap").ServeHTTP)) pprofGroup.GET("/mutex", ginHandlerFromHTTP(pprof.Handler("mutex").ServeHTTP)) pprofGroup.GET("/threadcreate", ginHandlerFromHTTP(pprof.Handler("threadcreate").ServeHTTP)) }