Skip to content

Commit

Permalink
enable heap pprof
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a68aa3)
  • Loading branch information
dhaidashenko committed Nov 28, 2024
1 parent bc2b7af commit 297ae3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/web/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 297ae3d

Please sign in to comment.