Rename mem_stats field to mem

This commit is contained in:
Justin Li 2014-07-23 17:58:44 -04:00
parent 7a64ae2d1b
commit 4252cd7eeb
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ type BasicMemStats struct {
// General statistics. // General statistics.
Alloc uint64 // bytes allocated and still in use Alloc uint64 // bytes allocated and still in use
TotalAlloc uint64 // bytes allocated (even if freed) TotalAlloc uint64 // bytes allocated (even if freed)
Sys uint64 // bytes obtained from system (sum of XxxSys below) Sys uint64 // bytes obtained from system (sum of XxxSys in runtime)
Lookups uint64 // number of pointer lookups Lookups uint64 // number of pointer lookups
Mallocs uint64 // number of mallocs Mallocs uint64 // number of mallocs
Frees uint64 // number of frees Frees uint64 // number of frees

View file

@ -84,7 +84,7 @@ type Stats struct {
RequestsErrored uint64 `json:"requests_errored"` RequestsErrored uint64 `json:"requests_errored"`
ResponseTime PercentileTimes `json:"response_time"` ResponseTime PercentileTimes `json:"response_time"`
MemStats *MemStatsWrapper `json:"mem_stats,omitempty"` MemStats *MemStatsWrapper `json:"mem,omitempty"`
events chan int events chan int
ipv4PeerEvents chan int ipv4PeerEvents chan int