aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/metrics
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2020-08-06 21:59:13 +0000
committerMichael Knyszek <mknyszek@google.com>2020-10-26 21:47:54 +0000
commitd39a89fd5843f535d634620d27110b320431f584 (patch)
treed44fd02351cc88c0d28e48465a3e5ac3bd056ff9 /src/runtime/metrics
parent36c5edd8d9e6c13af26733e5c820eae0598203fe (diff)
downloadgo-d39a89fd5843f535d634620d27110b320431f584.tar.gz
go-d39a89fd5843f535d634620d27110b320431f584.zip
runtime,runtime/metrics: add metric for distribution of GC pauses
For #37112. Change-Id: Ibb0425c9c582ae3da3b2662d5bbe830d7df9079c Reviewed-on: https://go-review.googlesource.com/c/go/+/247047 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>
Diffstat (limited to 'src/runtime/metrics')
-rw-r--r--src/runtime/metrics/description.go5
-rw-r--r--src/runtime/metrics/doc.go3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/metrics/description.go b/src/runtime/metrics/description.go
index e43904fc7d..47959e467c 100644
--- a/src/runtime/metrics/description.go
+++ b/src/runtime/metrics/description.go
@@ -89,6 +89,11 @@ var allDesc = []Description{
Kind: KindUint64,
},
{
+ Name: "/gc/pauses:seconds",
+ Description: "Distribution individual GC-related stop-the-world pause latencies.",
+ Kind: KindFloat64Histogram,
+ },
+ {
Name: "/memory/classes/heap/free:bytes",
Description: "Memory that is available for allocation, and may be returned to the underlying system.",
Kind: KindUint64,
diff --git a/src/runtime/metrics/doc.go b/src/runtime/metrics/doc.go
index 5045a5b4c1..1e12ade5a1 100644
--- a/src/runtime/metrics/doc.go
+++ b/src/runtime/metrics/doc.go
@@ -65,6 +65,9 @@ Supported metrics
/gc/heap/objects:objects
Number of objects, live or unswept, occupying heap memory.
+ /gc/pauses:seconds
+ Distribution individual GC-related stop-the-world pause latencies.
+
/memory/classes/heap/free:bytes
Memory that is available for allocation, and may be returned
to the underlying system.