]> Cypherpunks.ru repositories - gostls13.git/commit
runtime,runtime/metrics: add memory metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 1 Jul 2020 16:02:42 +0000 (16:02 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 18:29:05 +0000 (18:29 +0000)
commitb08dfbaa439e4e396b979e02ea2e7d36972e8b7a
tree20fbf60331aeb10a72f74625c45f4b0bcb3ca527
parent79781e8dd382ac34e502ed6a088dff6860a08c05
runtime,runtime/metrics: add memory metrics

This change adds support for a variety of runtime memory metrics and
contains the base implementation of Read for the runtime/metrics
package, which lives in the runtime.

It also adds testing infrastructure for the metrics package, and a bunch
of format and documentation tests.

For #37112.

Change-Id: I16a2c4781eeeb2de0abcb045c15105f1210e2d8a
Reviewed-on: https://go-review.googlesource.com/c/go/+/247041
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/cmd/go/internal/work/gc.go
src/runtime/export_test.go
src/runtime/metrics.go [new file with mode: 0644]
src/runtime/metrics/description.go
src/runtime/metrics/description_test.go [new file with mode: 0644]
src/runtime/metrics/doc.go
src/runtime/metrics/sample.go
src/runtime/metrics_test.go [new file with mode: 0644]
src/runtime/mstats.go