mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
metrics: fixed gofmt
This commit is contained in:
parent
6eefd0b58c
commit
47923969fb
2 changed files with 5 additions and 5 deletions
|
|
@ -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.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue