mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Update debug.go
This commit is contained in:
parent
e1444d1b2e
commit
f9ac557e57
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ var (
|
|||
gcStats debug.GCStats
|
||||
)
|
||||
|
||||
// CaptureDebugGCStats capture 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) {
|
||||
|
|
@ -27,7 +27,7 @@ func CaptureDebugGCStats(r Registry, d time.Duration) {
|
|||
}
|
||||
}
|
||||
|
||||
// CaptureDebugGCStatsOnce capture new values for the Go garbage collector
|
||||
// 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
|
||||
// RegisterDebugGCStats will panic.
|
||||
|
|
@ -50,7 +50,7 @@ func CaptureDebugGCStatsOnce(r Registry) {
|
|||
debugMetrics.GCStats.PauseTotal.Update(int64(gcStats.PauseTotal))
|
||||
}
|
||||
|
||||
// RegisterDebugGCStats register metrics for the Go garbage collector statistics
|
||||
// RegisterDebugGCStats registers 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue