From ec6eb3c8144db9b710b0b6be4ba86fd2ec615f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 24 May 2025 12:53:17 +0200 Subject: [PATCH] Add cpu profiling --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 20acfb4..806dcb3 100644 --- a/main.go +++ b/main.go @@ -106,6 +106,7 @@ func main() { if cfg.Profiling { logger.Info("Profiling enabled, exposing /debug/pprof") mux.HandleFunc("/debug/pprof/", pprof.Index) + mux.HandleFunc("/debug/pprof/profile", pprof.Profile) } // Start http server