runtime/metrics: add /gc/scan/globals:bytes

For #56857

Change-Id: I748fd2a33ee76d9a83ea42f2ebf6d9edda243301
Reviewed-on: https://go-review.googlesource.com/c/go/+/497320
Run-TryBot: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Felix Geisendörfer 2023-05-23 12:35:48 +02:00 committed by Gopher Robot
parent 8b51eb5199
commit a63afe4720
3 changed files with 14 additions and 0 deletions

View file

@ -294,6 +294,11 @@ var allDesc = []Description{
Kind: KindFloat64Histogram,
Cumulative: true,
},
{
Name: "/gc/scan/globals:bytes",
Description: "The total amount of global variable space that is scannable.",
Kind: KindUint64,
},
{
Name: "/gc/scan/stack:bytes",
Description: "The number of bytes of stack that were scanned last GC cycle.",