diff options
| author | Nayef Ghattas <nayef.ghattas@datadoghq.com> | 2023-09-05 14:00:17 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-09-06 15:44:45 +0000 |
| commit | 2186909d8651728cb71a4e02e0fe7b2c3d55e9b4 (patch) | |
| tree | 4e30118543ebfacca32aa528db5b0ed9b76767bd /test/codegen/bits.go | |
| parent | 4c5130a96eabd5d9a72a43aa8e895b668fbd653b (diff) | |
| download | go-2186909d8651728cb71a4e02e0fe7b2c3d55e9b4.tar.xz | |
runtime/metrics: fix /gc/scan/* metrics
In the existing implementation, all /gc/scan/* metrics are
always equal to 0 due to the dependency on gcStatDep not being
set. This leads to gcStatAggregate always containing zeros, and
always reporting 0 for those metrics.
Also, add a test to ensure that /gc/scan/* metrics are not empty.
Fixes #62477.
Change-Id: I67497347d50ed5c3ce1719a18714c062ec938cab
Reviewed-on: https://go-review.googlesource.com/c/go/+/525595
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Diffstat (limited to 'test/codegen/bits.go')
0 files changed, 0 insertions, 0 deletions
