]> Cypherpunks.ru repositories - gostls13.git/commit
runtime,runtime/metrics: clarify OS stack metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 9 Jun 2023 19:14:55 +0000 (19:14 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 5 Jul 2023 15:21:49 +0000 (15:21 +0000)
commitb2215e49c79ef5078f3c1b46adc0bef6109af388
tree9bd3fd75efe6bfbf86f1ac0b2502356875d2b49e
parente126572f8a91d42b86242012012d0cad4507dca8
runtime,runtime/metrics: clarify OS stack metrics

There are some subtle details here about measuring OS stacks in cgo
programs. There's also an expectation about magnitude in the MemStats
docs that isn't in the runtime/metrics docs. Fix both.

Fixes #54396.

Change-Id: I6b60a62a4a304e6688e7ab4d511d66193fc25321
Reviewed-on: https://go-review.googlesource.com/c/go/+/502156
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/mstats.go