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
|
||||
|
||||
// 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]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue