MCPcopy Index your code
hub / github.com/coder/coder / SetMutexProfileFraction

Method SetMutexProfileFraction

coderd/debug.go:386–388  ·  view source on GitHub ↗
(rate int)

Source from the content-addressed store, hash-verified

384
385func (defaultProfileCollector) SetBlockProfileRate(rate int) { runtime.SetBlockProfileRate(rate) }
386func (defaultProfileCollector) SetMutexProfileFraction(rate int) int {
387 return runtime.SetMutexProfileFraction(rate)
388}
389
390// defaultProfiles is the set of profiles collected when none are specified.
391var defaultProfiles = []string{"cpu", "heap", "allocs", "block", "mutex", "goroutine"}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected