mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-09-04 12:45:10 +00:00
stats: rename PauseNS to LatestPauseNS
This commit is contained in:
parent
7b4fe081d1
commit
7f1829dd68
1 changed files with 3 additions and 3 deletions
|
@ -26,8 +26,8 @@ type BasicMemStats struct {
|
||||||
HeapObjects uint64 // total number of allocated objects
|
HeapObjects uint64 // total number of allocated objects
|
||||||
|
|
||||||
// Garbage collector statistics.
|
// Garbage collector statistics.
|
||||||
PauseTotalNs uint64
|
PauseTotalNs uint64
|
||||||
PauseNs uint64
|
LatestPauseNs uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type memStatsPlaceholder interface{}
|
type memStatsPlaceholder interface{}
|
||||||
|
@ -73,6 +73,6 @@ func (s *MemStatsWrapper) Update() {
|
||||||
s.basic.HeapReleased = s.cache.HeapReleased
|
s.basic.HeapReleased = s.cache.HeapReleased
|
||||||
s.basic.HeapObjects = s.cache.HeapObjects
|
s.basic.HeapObjects = s.cache.HeapObjects
|
||||||
s.basic.PauseTotalNs = s.cache.PauseTotalNs
|
s.basic.PauseTotalNs = s.cache.PauseTotalNs
|
||||||
s.basic.PauseNs = s.cache.PauseNs[(s.cache.NumGC+255)%256]
|
s.basic.LatestPauseNs = s.cache.PauseNs[(s.cache.NumGC+255)%256]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue