For #56857
Change-Id: If3b962f575c33b2cc29f89e33c7aafb476d98ce9
Reviewed-on: https://go-review.googlesource.com/c/go/+/497575
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
out.scalar = gcController.globalsScan.Load()
},
},
+ "/gc/scan/heap:bytes": {
+ compute: func(in *statAggregate, out *metricValue) {
+ out.kind = metricKindUint64
+ out.scalar = gcController.heapScan.Load()
+ },
+ },
"/gc/heap/allocs-by-size:bytes": {
deps: makeStatDepSet(heapStatsDep),
compute: func(in *statAggregate, out *metricValue) {
Description: "The total amount of global variable space that is scannable.",
Kind: KindUint64,
},
+ {
+ Name: "/gc/scan/heap:bytes",
+ Description: "The total amount of heap space that is scannable.",
+ Kind: KindUint64,
+ },
{
Name: "/gc/scan/stack:bytes",
Description: "The number of bytes of stack that were scanned last GC cycle.",
/gc/scan/globals:bytes
The total amount of global variable space that is scannable.
+ /gc/scan/heap:bytes
+ The total amount of heap space that is scannable.
+
/gc/scan/stack:bytes
The number of bytes of stack that were scanned last GC cycle.