]> Cypherpunks repositories - gostls13.git/commit
runtime: use maxprocs instead of stwprocs for GC CPU pause time metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 8 Mar 2024 23:02:34 +0000 (23:02 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 8 Apr 2024 15:39:41 +0000 (15:39 +0000)
commitae0a08dee964772fbb36008f03a5f082a405e219
tree0e3945ac1d48ae7fcd0bca808693b9e922ff7fc9
parent08a7ab97baaa7f57f58701fd205dfdaf02aeea16
runtime: use maxprocs instead of stwprocs for GC CPU pause time metrics

Currently we use stwprocs as the multiplier for the STW CPU time
computation, but this isn't the same as GOMAXPROCS, which is used for
the total time in the CPU metrics. The two numbers need to be
comparable, so this change switches to using maxprocs to make it so.

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