Add cpu profiling

This commit is contained in:
Torjus Håkestad 2025-05-24 12:53:17 +02:00
parent c620e4a005
commit ec6eb3c814
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4

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