Skip to content

Commit 5b29517

Browse files
committed
adding mutex and contention profile gathering
1 parent c22262e commit 5b29517

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/epp/runner/runner.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"net/http"
2626
"net/http/pprof"
2727
"os"
28+
"runtime"
2829
"sync/atomic"
2930

3031
"github.com/go-logr/logr"
@@ -228,6 +229,8 @@ func (r *Runner) Run(ctx context.Context) error {
228229
setupLog.Error(err, "Failed to setup pprof handlers")
229230
return err
230231
}
232+
runtime.SetMutexProfileFraction(1)
233+
runtime.SetBlockProfileRate(1)
231234
}
232235

233236
err = r.parsePluginsConfiguration(ctx)

0 commit comments

Comments
 (0)