From 89bb50d182010897970c19f32c4053727171af04 Mon Sep 17 00:00:00 2001 From: wujinbao <389092100@qq.com> Date: Sun, 26 May 2024 15:45:03 +0800 Subject: [PATCH] metrics: fix function comment --- metrics/debug.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics/debug.go b/metrics/debug.go index de4a2739fe..1f722f72cf 100644 --- a/metrics/debug.go +++ b/metrics/debug.go @@ -19,7 +19,7 @@ var ( gcStats debug.GCStats ) -// Capture new values for the Go garbage collector statistics exported in +// CaptureDebugGCStats capture new values for the Go garbage collector statistics exported in // debug.GCStats. This is designed to be called as a goroutine. func CaptureDebugGCStats(r Registry, d time.Duration) { for range time.Tick(d) { @@ -27,7 +27,7 @@ func CaptureDebugGCStats(r Registry, d time.Duration) { } } -// Capture new values for the Go garbage collector statistics exported in +// CaptureDebugGCStatsOnce capture new values for the Go garbage collector statistics exported in // debug.GCStats. This is designed to be called in a background goroutine. // Giving a registry which has not been given to RegisterDebugGCStats will // panic. @@ -50,7 +50,7 @@ func CaptureDebugGCStatsOnce(r Registry) { debugMetrics.GCStats.PauseTotal.Update(int64(gcStats.PauseTotal)) } -// Register metrics for the Go garbage collector statistics exported in +// RegisterDebugGCStats register metrics for the Go garbage collector statistics exported in // debug.GCStats. The metrics are named by their fully-qualified Go symbols, // i.e. debug.GCStats.PauseTotal. func RegisterDebugGCStats(r Registry) {