]> Cypherpunks repositories - gostls13.git/commit
runtime/metrics: add cleanup and finalizer queue metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 23 Jul 2025 03:09:27 +0000 (03:09 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 30 Jul 2025 21:00:16 +0000 (14:00 -0700)
commita4d99770c0e5f340d6d11d6353110413dc109138
tree484d66947e00ef09883f49597f9e2f08820d1031
parent70a2ff76485477211397ae6399bee06101bc5935
runtime/metrics: add cleanup and finalizer queue metrics

These metrics are useful for identifying finalizer and cleanup problems,
namely slow finalizers and/or cleanups holding up the queue, which can
lead to a memory leak.

Fixes #72948.

Change-Id: I1bb64a9ca751fcb462c96d986d0346e0c2894c95
Reviewed-on: https://go-review.googlesource.com/c/go/+/690396
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/metrics_test.go