aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/debug.go')
-rw-r--r--src/runtime/debug.go11
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())