package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

CumulativeNormalizedRunnableGoroutines returns the sum, over all seconds since the program started, of the average number of runnable goroutines per GOMAXPROC.
RecentNormalizedRunnableGoroutines returns a recent average of the number of runnable goroutines per GOMAXPROC.
RegisterRunnableCountCallback registers a callback to be run with the runnable and procs info, every 1ms, unless cpu load is very low (see the commentary for samplePeriodShort).
RegisterSettings provides a settings object that can be used to alter callback frequency.
UnregisterRunnableCountCallback unregisters the callback to be run with the runnable and procs info.

# Type aliases

RunnableCountCallback is provided the current value of runnable goroutines, GOMAXPROCS, and the current sampling period.