mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime,runtime/metrics: add metric to track scheduling latencies
This change adds a metric to track scheduling latencies, defined as the cumulative amount of time a goroutine spends being runnable before running again. The metric is an approximations and samples instead of trying to record every goroutine scheduling latency. This change was primarily authored by mknyszek@google.com. Change-Id: Ie0be7e6e7be421572eb2317d3dd8dd6f3d6aa152 Reviewed-on: https://go-review.googlesource.com/c/go/+/308933 Trust: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
105a6e9518
commit
bedfeed54a
7 changed files with 81 additions and 1 deletions
|
|
@ -176,6 +176,11 @@ var allDesc = []Description{
|
|||
Description: "Count of live goroutines.",
|
||||
Kind: KindUint64,
|
||||
},
|
||||
{
|
||||
Name: "/sched/latencies:seconds",
|
||||
Description: "Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running.",
|
||||
Kind: KindFloat64Histogram,
|
||||
},
|
||||
}
|
||||
|
||||
// All returns a slice of containing metric descriptions for all supported metrics.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue