]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/metrics: add the last GC cycle that had the limiter enabled
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 13 May 2022 15:14:54 +0000 (15:14 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 13 May 2022 20:45:19 +0000 (20:45 +0000)
commitcfccb5cb7cea77c5272115556e59dea374e4dbd1
tree5485c8037604bbd8f3e38ae263cce078e806d99b
parent9bd6e2776f7dde746dc39923fd2bd994c91fd182
runtime/metrics: add the last GC cycle that had the limiter enabled

This metric exports the the last GC cycle index that the GC limiter was
enabled. This metric is useful for debugging and identifying the root
cause of OOMs, especially when SetMemoryLimit is in use.

For #48409.

Change-Id: Ic6383b19e88058366a74f6ede1683b8ffb30a69c
Reviewed-on: https://go-review.googlesource.com/c/go/+/403614
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/mgclimit.go