]> Cypherpunks repositories - gostls13.git/commit
runtime,runtime/metrics: add heap goal and GC cycle metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 6 Aug 2020 16:47:58 +0000 (16:47 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 18:29:24 +0000 (18:29 +0000)
commita8b28ebc87854fb6f2ba99f415f046dc2ff63604
treea1d157399536326322763d8e9161ce656f4064e8
parent07c3f65d53df7bb9f84bdbd2ab64c0ae12337e3e
runtime,runtime/metrics: add heap goal and GC cycle metrics

This change adds three new metrics: the heap goal, GC cycle count, and
forced GC count. These metrics are identical to their MemStats
counterparts.

For #37112.

Change-Id: I5a5e8dd550c0d646e5dcdbdf38274895e27cdd88
Reviewed-on: https://go-review.googlesource.com/c/go/+/247044
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>
src/runtime/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/metrics_test.go