diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/metrics.go | 6 | ||||
| -rw-r--r-- | src/runtime/metrics/description.go | 5 | ||||
| -rw-r--r-- | src/runtime/metrics/doc.go | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/runtime/metrics.go b/src/runtime/metrics.go index 356d21ae7d..4c51efaad9 100644 --- a/src/runtime/metrics.go +++ b/src/runtime/metrics.go @@ -201,6 +201,12 @@ func initMetrics() { out.scalar = gcController.heapScan.Load() }, }, + "/gc/scan/total:bytes": { + compute: func(in *statAggregate, out *metricValue) { + out.kind = metricKindUint64 + out.scalar = gcController.globalsScan.Load() + gcController.heapScan.Load() + gcController.lastStackScan.Load() + }, + }, "/gc/heap/allocs-by-size:bytes": { deps: makeStatDepSet(heapStatsDep), compute: func(in *statAggregate, out *metricValue) { diff --git a/src/runtime/metrics/description.go b/src/runtime/metrics/description.go index ac6f437075..b34ffe405d 100644 --- a/src/runtime/metrics/description.go +++ b/src/runtime/metrics/description.go @@ -310,6 +310,11 @@ var allDesc = []Description{ Kind: KindUint64, }, { + Name: "/gc/scan/total:bytes", + Description: "The total amount space that is scannable. Sum of all metrics in /gc/scan.", + Kind: KindUint64, + }, + { Name: "/gc/stack/starting-size:bytes", Description: "The stack size of new goroutines.", Kind: KindUint64, diff --git a/src/runtime/metrics/doc.go b/src/runtime/metrics/doc.go index 15fba2b5d4..44e2676ac5 100644 --- a/src/runtime/metrics/doc.go +++ b/src/runtime/metrics/doc.go @@ -225,6 +225,10 @@ Below is the full list of supported metrics, ordered lexicographically. /gc/scan/stack:bytes The number of bytes of stack that were scanned last GC cycle. + /gc/scan/total:bytes + The total amount space that is scannable. Sum of all metrics in + /gc/scan. + /gc/stack/starting-size:bytes The stack size of new goroutines. |
