Skip to content

Commit

Permalink
heap
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnogo committed Oct 17, 2024
1 parent 0bffad2 commit 4b97b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/web/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4b97b57

Please sign in to comment.