From 48745ff7aac420b801061bbc707c4bb8619b8b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Strzali=C5=84ski?= Date: Fri, 22 Nov 2024 18:04:07 +0100 Subject: [PATCH] Add another pprof endpoint (#1034) This should be added here #1031. Sorry --- quesma/quesma/ui/console_routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/quesma/quesma/ui/console_routes.go b/quesma/quesma/ui/console_routes.go index 0dc862ab1..a6a39a5fe 100644 --- a/quesma/quesma/ui/console_routes.go +++ b/quesma/quesma/ui/console_routes.go @@ -309,6 +309,7 @@ func (qmc *QuesmaManagementConsole) initPprof(router *mux.Router) { router.HandleFunc("/debug/pprof/heap", pprof.Handler("heap").ServeHTTP) router.HandleFunc("/debug/pprof/block", pprof.Handler("block").ServeHTTP) router.HandleFunc("/debug/pprof/mutex", pprof.Handler("mutex").ServeHTTP) + router.HandleFunc("/debug/pprof/allocs", pprof.Handler("allocs").ServeHTTP) router.HandleFunc("/debug/pprof/symbol", pprof.Symbol) router.HandleFunc("/debug/pprof/trace", pprof.Trace) }