diff --git a/metrics/debug.go b/metrics/debug.go index fdc7e2eaa9..4d5169f59a 100644 --- a/metrics/debug.go +++ b/metrics/debug.go @@ -19,7 +19,7 @@ var ( gcStats debug.GCStats ) -// CaptureDebugGCStats captures new values for the Go garbage collector statistics +// CaptureDebugGCStats captures 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) { @@ -28,8 +28,8 @@ func CaptureDebugGCStats(r Registry, d time.Duration) { } // CaptureDebugGCStatsOnce captures 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 +// 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. // diff --git a/metrics/runtime.go b/metrics/runtime.go index 66a6d7a8db..70791a1104 100644 --- a/metrics/runtime.go +++ b/metrics/runtime.go @@ -52,7 +52,7 @@ var ( threadCreateProfile = pprof.Lookup("threadcreate") ) -// CaptureRuntimeMemStats captures new values for the Go runtime statistics exported +// CaptureRuntimeMemStats captures new values for the Go runtime statistics exported // in runtime.MemStats. This is designed to be called as a goroutine. func CaptureRuntimeMemStats(r Registry, d time.Duration) { for range time.Tick(d) { @@ -60,7 +60,7 @@ func CaptureRuntimeMemStats(r Registry, d time.Duration) { } } -// CaptureRuntimeMemStatsOnce captures new values for the Go runtime statistics +// CaptureRuntimeMemStatsOnce captures new values for the Go runtime statistics // exported in runtime.MemStats. This is designed to be called in a background // goroutine. Giving a registry which has not been given to RegisterRuntimeMemStats // will panic.