diff options
| author | khr@golang.org <khr@golang.org> | 2025-05-08 10:00:22 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-05-08 11:21:51 -0700 |
| commit | 60d3bcdec38eafbffe3086d8aea190ff8bcdece7 (patch) | |
| tree | 6309352c4b866b0d9860d6fb13ac522f1a3326b1 /src/runtime/metrics.go | |
| parent | e46c8e0558d287fcffde75bb458419288e71db62 (diff) | |
| download | go-60d3bcdec38eafbffe3086d8aea190ff8bcdece7.tar.xz | |
runtime: remove ptr/scalar bitmap metric
We don't use this mechanism any more, so the metric will always be zero.
Since CL 616255.
Update #73628
Change-Id: Ic179927a8bc24e6291876c218d88e8848b057c2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/671096
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/metrics.go')
| -rw-r--r-- | src/runtime/metrics.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/metrics.go b/src/runtime/metrics.go index 949a2d42bd..48da745521 100644 --- a/src/runtime/metrics.go +++ b/src/runtime/metrics.go @@ -333,8 +333,7 @@ func initMetrics() { compute: func(in *statAggregate, out *metricValue) { out.kind = metricKindUint64 out.scalar = uint64(in.heapStats.committed - in.heapStats.inHeap - - in.heapStats.inStacks - in.heapStats.inWorkBufs - - in.heapStats.inPtrScalarBits) + in.heapStats.inStacks - in.heapStats.inWorkBufs) }, }, "/memory/classes/heap/objects:bytes": { @@ -397,7 +396,7 @@ func initMetrics() { deps: makeStatDepSet(heapStatsDep, sysStatsDep), compute: func(in *statAggregate, out *metricValue) { out.kind = metricKindUint64 - out.scalar = uint64(in.heapStats.inWorkBufs+in.heapStats.inPtrScalarBits) + in.sysStats.gcMiscSys + out.scalar = uint64(in.heapStats.inWorkBufs) + in.sysStats.gcMiscSys }, }, "/memory/classes/os-stacks:bytes": { |
