Add cpu profiling

This commit is contained in:
2025-05-24 12:53:17 +02:00
parent c620e4a005
commit ec6eb3c814

View File

@@ -106,6 +106,7 @@ func main() {
if cfg.Profiling { if cfg.Profiling {
logger.Info("Profiling enabled, exposing /debug/pprof") logger.Info("Profiling enabled, exposing /debug/pprof")
mux.HandleFunc("/debug/pprof/", pprof.Index) mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
} }
// Start http server // Start http server