diff --git a/internal/debug/flags.go b/internal/debug/flags.go index dac878a7b1..1f7b106fa7 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -314,6 +314,8 @@ func StartPProf(address string, withMetrics bool) { exp.Exp(metrics.DefaultRegistry) } http.Handle("/memsize/", http.StripPrefix("/memsize", &Memsize)) + runtime.SetBlockProfileRate(1) + runtime.SetMutexProfileFraction(1) log.Info("Starting pprof server", "addr", fmt.Sprintf("http://%s/debug/pprof", address)) go func() { if err := http.ListenAndServe(address, nil); err != nil {