diff options
author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-01-08 17:12:50 +0000 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2021-01-08 18:15:53 +0000 |
commit | 6250833911fc979a4ca5ba8b7f0612d054a3aeec (patch) | |
tree | 8b8f351bf5a934842f31228fc8e813dfe8f675b4 /src/runtime | |
parent | 8f6a9acbb3f63a77175eaa153cace5f3b6d611b2 (diff) | |
download | go-6250833911fc979a4ca5ba8b7f0612d054a3aeec.tar.gz go-6250833911fc979a4ca5ba8b7f0612d054a3aeec.zip |
runtime/metrics: mark histogram metrics as cumulative
All the current histogram metrics accumulate counts from program start
to infinity, and can be reasonably used to compute rates (also to
generate windowed distributions).
Change-Id: I5196c59867de34fba41bb8552606fa315460cef9
Reviewed-on: https://go-review.googlesource.com/c/go/+/282633
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/metrics/description.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/metrics/description.go b/src/runtime/metrics/description.go index 716802e9a2..1175156104 100644 --- a/src/runtime/metrics/description.go +++ b/src/runtime/metrics/description.go @@ -73,11 +73,13 @@ var allDesc = []Description{ Name: "/gc/heap/allocs-by-size:bytes", Description: "Distribution of all objects allocated by approximate size.", Kind: KindFloat64Histogram, + Cumulative: true, }, { Name: "/gc/heap/frees-by-size:bytes", Description: "Distribution of all objects freed by approximate size.", Kind: KindFloat64Histogram, + Cumulative: true, }, { Name: "/gc/heap/goal:bytes", @@ -93,6 +95,7 @@ var allDesc = []Description{ Name: "/gc/pauses:seconds", Description: "Distribution individual GC-related stop-the-world pause latencies.", Kind: KindFloat64Histogram, + Cumulative: true, }, { Name: "/memory/classes/heap/free:bytes", |