aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorQingwei Li@WSL <lqw332664203@mail.ustc.edu.cn>2025-08-19 21:47:50 +0000
committerGopher Robot <gobot@golang.org>2025-08-22 11:39:55 -0700
commit52c3f73fda5b63c6da338e8447c51bbe00c237dd (patch)
tree8d079cbcbb0d954c881d3d8919d8bbaac36ea67c /src/runtime
parenta076f497577605e4cf0e20c147711e03dee7b2c3 (diff)
downloadgo-52c3f73fda5b63c6da338e8447c51bbe00c237dd.tar.xz
runtime/metrics: improve doc
Polish a sentence by removing redundant "in response". Change-Id: I232198ad904333f8eaa0c25a12824f0dcbf3cfb6 GitHub-Last-Rev: 421bfc03874f84a280e09bbd59d0bd074b4c9574 GitHub-Pull-Request: golang/go#72793 Reviewed-on: https://go-review.googlesource.com/c/go/+/656735 Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Sean Liao <sean@liao.dev>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/metrics/description.go2
-rw-r--r--src/runtime/metrics/doc.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/metrics/description.go b/src/runtime/metrics/description.go
index c8c5bf9888..b9a6ab5fea 100644
--- a/src/runtime/metrics/description.go
+++ b/src/runtime/metrics/description.go
@@ -126,7 +126,7 @@ var allDesc = []Description{
{
Name: "/cpu/classes/scavenge/assist:cpu-seconds",
Description: "Estimated total CPU time spent returning unused memory to the " +
- "underlying platform in response eagerly in response to memory pressure. " +
+ "underlying platform in response eagerly to memory pressure. " +
"This metric is an overestimate, and not directly comparable to " +
"system CPU time measurements. Compare only with other /cpu/classes " +
"metrics.",
diff --git a/src/runtime/metrics/doc.go b/src/runtime/metrics/doc.go
index 00ce60dde1..e40ce25ff9 100644
--- a/src/runtime/metrics/doc.go
+++ b/src/runtime/metrics/doc.go
@@ -104,10 +104,10 @@ Below is the full list of supported metrics, ordered lexicographically.
/cpu/classes/scavenge/assist:cpu-seconds
Estimated total CPU time spent returning unused memory to the
- underlying platform in response eagerly in response to memory
- pressure. This metric is an overestimate, and not directly
- comparable to system CPU time measurements. Compare only with
- other /cpu/classes metrics.
+ underlying platform in response eagerly to memory pressure. This
+ metric is an overestimate, and not directly comparable to system
+ CPU time measurements. Compare only with other /cpu/classes
+ metrics.
/cpu/classes/scavenge/background:cpu-seconds
Estimated total CPU time spent performing background tasks to