mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-02 06:48:57 -07:00
stats: rename PauseNS to LatestPauseNS
This commit is contained in:
+3
-3
@@ -26,8 +26,8 @@ type BasicMemStats struct {
|
||||
HeapObjects uint64 // total number of allocated objects
|
||||
|
||||
// Garbage collector statistics.
|
||||
PauseTotalNs uint64
|
||||
PauseNs uint64
|
||||
PauseTotalNs uint64
|
||||
LatestPauseNs uint64
|
||||
}
|
||||
|
||||
type memStatsPlaceholder interface{}
|
||||
@@ -73,6 +73,6 @@ func (s *MemStatsWrapper) Update() {
|
||||
s.basic.HeapReleased = s.cache.HeapReleased
|
||||
s.basic.HeapObjects = s.cache.HeapObjects
|
||||
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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user