go/src/sync
Peter Weinberger ca922b6d36 runtime: Profile goroutines holding contended mutexes.
runtime.SetMutexProfileFraction(n int) will capture 1/n-th of stack
traces of goroutines holding contended mutexes if n > 0. From runtime/pprof,
pprot.Lookup("mutex").WriteTo writes the accumulated
stack traces to w (in essentially the same format that blocking
profiling uses).

Change-Id: Ie0b54fa4226853d99aa42c14cb529ae586a8335a
Reviewed-on: https://go-review.googlesource.com/29650
Reviewed-by: Austin Clements <austin@google.com>
2016-10-28 11:47:16 +00:00
..
atomic cmd/compile: intrinsify sync/atomic for amd64 2016-08-30 15:23:23 +00:00
cond.go cmd/vet: check sync.* types' copying 2016-05-06 16:43:51 +00:00
cond_test.go sync: new Cond implementation 2016-03-15 22:01:20 +00:00
example_test.go
export_test.go
mutex.go runtime: Profile goroutines holding contended mutexes. 2016-10-28 11:47:16 +00:00
mutex_test.go runtime: Profile goroutines holding contended mutexes. 2016-10-28 11:47:16 +00:00
once.go
once_test.go
pool.go cmd/vet: check sync.* types' copying 2016-05-06 16:43:51 +00:00
pool_test.go
runtime.go runtime: Profile goroutines holding contended mutexes. 2016-10-28 11:47:16 +00:00
runtime_sema_test.go sync: don't assume b.N > 0 2016-03-18 16:37:39 +00:00
rwmutex.go sync: throw, not panic, for unlock of unlocked mutex 2016-10-19 17:46:27 +00:00
rwmutex_test.go sync: throw, not panic, for unlock of unlocked mutex 2016-10-19 17:46:27 +00:00
waitgroup.go cmd/vet: check sync.* types' copying 2016-05-06 16:43:51 +00:00
waitgroup_test.go