Skip to content

Commit

Permalink
enable mutex and block profiler (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Aug 2, 2024
1 parent eccbca7 commit 170f6ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ func run(state overseer.State) {
}

if *profile {
runtime.SetBlockProfileRate(1)
runtime.SetMutexProfileFraction(-1)
go func() {
router := http.NewServeMux()
router.Handle("/debug/pprof/", http.DefaultServeMux)
Expand Down

0 comments on commit 170f6ab

Please sign in to comment.