MCPcopy Create free account
hub / github.com/CPChain/chain / SetMutexProfileFraction

Method SetMutexProfileFraction

internal/debug/api.go:158–160  ·  view source on GitHub ↗

SetMutexProfileFraction sets the rate of mutex profiling.

(rate int)

Source from the content-addressed store, hash-verified

156
157// SetMutexProfileFraction sets the rate of mutex profiling.
158func (*HandlerT) SetMutexProfileFraction(rate int) {
159 runtime.SetMutexProfileFraction(rate)
160}
161
162// WriteMutexProfile writes a goroutine blocking profile to the given file.
163func (*HandlerT) WriteMutexProfile(file string) error {

Callers 1

MutexProfileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected