MCPcopy
hub / github.com/prometheus/client_golang / getRuntimeNumThreads

Function getRuntimeNumThreads

prometheus/num_threads.go:22–25  ·  view source on GitHub ↗

getRuntimeNumThreads returns the number of open OS threads.

()

Source from the content-addressed store, hash-verified

20
21// getRuntimeNumThreads returns the number of open OS threads.
22func getRuntimeNumThreads() float64 {
23 n, _ := runtime.ThreadCreateProfile(nil)
24 return float64(n)
25}

Callers 1

CollectMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected