From 4b97b579973dd3a90573af18acd2c1e98c373448 Mon Sep 17 00:00:00 2001 From: nogo <0xnogo@gmail.com> Date: Thu, 17 Oct 2024 17:56:51 +0400 Subject: [PATCH] heap --- core/web/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/web/router.go b/core/web/router.go index 6e96b47981..ce4fd52d5f 100644 --- a/core/web/router.go +++ b/core/web/router.go @@ -189,7 +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 { + if !includeHeap { pprofGroup.GET("/heap", ginHandlerFromHTTP(pprof.Handler("heap").ServeHTTP)) } pprofGroup.GET("/mutex", ginHandlerFromHTTP(pprof.Handler("mutex").ServeHTTP))