]> Cypherpunks repositories - gostls13.git/commit
runtime/metrics: add CPU stats
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 6 May 2022 20:11:28 +0000 (20:11 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 16 Sep 2022 16:32:20 +0000 (16:32 +0000)
commitb7c28f484ddbc8267273c997e1bcc83a1391b5f7
treefe23dfabb05048822ab00faf36cc6aee2518f974
parent87eda2a782db9b7ad2ec1fd335ed6c7472aa66bc
runtime/metrics: add CPU stats

This changes adds a breakdown for estimated CPU usage by time. These
estimates are not based on real on-CPU counters, so each metric has a
disclaimer explaining so. They can, however, be more reasonably
compared to a total CPU time metric that this change also adds.

Fixes #47216.

Change-Id: I125006526be9f8e0d609200e193da5a78d9935be
Reviewed-on: https://go-review.googlesource.com/c/go/+/404307
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Josh MacDonald <jmacd@lightstep.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/metrics_test.go
src/runtime/mgc.go
src/runtime/mgclimit.go
src/runtime/mgcscavenge.go
src/runtime/mheap.go
src/runtime/mpagealloc.go
src/runtime/mstats.go
src/runtime/runtime2.go