diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2023-11-20 06:27:20 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-20 13:20:29 +0000 |
| commit | 468bc941886ae83b8d16af5deaaf12ea5cabb05b (patch) | |
| tree | 1d008384170d873009c247dcef90da14ac1afb95 /src/runtime/debug.go | |
| parent | 237715cf7c4c2aabf6d3c04473488c1b2477f8ea (diff) | |
| download | go-468bc941886ae83b8d16af5deaaf12ea5cabb05b.tar.xz | |
Revert "runtime: profile contended lock calls"
This reverts commit go.dev/cl/528657.
Reason for revert: broke a lot of builders.
Change-Id: I70c33062020e997c4df67b3eaa2e886cf0da961e
Reviewed-on: https://go-review.googlesource.com/c/go/+/543660
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/debug.go')
| -rw-r--r-- | src/runtime/debug.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 3233ce8ee7..0e61692f3d 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -52,17 +52,6 @@ func NumCgoCall() int64 { return n } -func totalMutexWaitTimeNanos() int64 { - total := sched.totalMutexWaitTime.Load() - - total += sched.totalRuntimeLockWaitTime.Load() - for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink { - total += mp.mLockProfile.waitTime.Load() - } - - return total -} - // NumGoroutine returns the number of goroutines that currently exist. func NumGoroutine() int { return int(gcount()) |
