From 52c3f73fda5b63c6da338e8447c51bbe00c237dd Mon Sep 17 00:00:00 2001 From: "Qingwei Li@WSL" Date: Tue, 19 Aug 2025 21:47:50 +0000 Subject: [PATCH] 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 Reviewed-by: Sean Liao Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Auto-Submit: Sean Liao --- src/runtime/metrics/description.go | 2 +- src/runtime/metrics/doc.go | 8 ++++---- 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 -- 2.52.0