]> Cypherpunks repositories - gostls13.git/commit
runtime: factor out GC pause time CPU stats update
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 8 Mar 2024 22:59:46 +0000 (22:59 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 8 Apr 2024 15:39:02 +0000 (15:39 +0000)
commit08a7ab97baaa7f57f58701fd205dfdaf02aeea16
tree98ccaef37e216d16d10053582dc746a1e1b157dc
parentddc6e165fd84cf7d46f743dabe925835f16a73ee
runtime: factor out GC pause time CPU stats update

Currently this is done manually in two places. Replace these manual
updates with a method that also forces the caller to be mindful that the
number will be multiplied (and that it needs to be). This will make
follow-up changes simpler too.

Change-Id: I81ea844b47a40ff3470d23214b4b2fb5b71a4abe
Reviewed-on: https://go-review.googlesource.com/c/go/+/570255
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/mgc.go
src/runtime/mstats.go