Skip to content

Commit

Permalink
Merge #2898
Browse files Browse the repository at this point in the history
2898: [Profile] disable threadcreate profiler r=SaveTheRbtz a=SaveTheRbtz

[It has been broken since 2013](golang/go#6104). Verified on localnet and removed.

Co-authored-by: Alexey Ivanov <[email protected]>
  • Loading branch information
bors[bot] and SaveTheRbtz authored Jul 29, 2022
2 parents 64cec5a + ef2fb8e commit 03634c1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions module/profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ func (p *AutoProfiler) start() {
p.log.Info().Msg("starting profile trace")

for k, v := range map[string]profileFunc{
"goroutine": newProfileFunc("goroutine"),
"threadcreate": newProfileFunc("threadcreate"),
"heap": p.pprofHeap,
"block": p.pprofBlock,
"mutex": p.pprofMutex,
"cpu": p.pprofCpu,
"goroutine": newProfileFunc("goroutine"),
"heap": p.pprofHeap,
"block": p.pprofBlock,
"mutex": p.pprofMutex,
"cpu": p.pprofCpu,
} {
err := p.pprof(k, v)
if err != nil {
Expand Down

0 comments on commit 03634c1

Please sign in to comment.