X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=api%2Fstats.go;h=d5665b77a7044b6f1a2177aca87430d95dedceb5;hb=4a4094e6cdc7f5d9e5a470ccf82df1c780c7e224;hp=9e1ba7552ca35a794805cd3b594359777553bfa1;hpb=b74e3b37479a7fa763bed1f2c76de612ee51dcbc;p=govpp.git diff --git a/api/stats.go b/api/stats.go index 9e1ba75..d5665b7 100644 --- a/api/stats.go +++ b/api/stats.go @@ -98,7 +98,7 @@ type ErrorStats struct { type ErrorCounter struct { CounterName string - Value uint64 + Values []uint64 } // BufferStats represents statistics per buffer pool. @@ -117,6 +117,23 @@ type BufferPool struct { // MemoryStats represents memory stats segment counters. type MemoryStats struct { + // Deprecated: /mem/statseg total memory directory Total float64 - Used float64 + // Deprecated: /mem/statseg used memory directory + Used float64 + + // stat/main memory usage per-heap + Stat map[int]MemoryCounters + Main map[int]MemoryCounters +} + +// MemoryCounters represents values of various memory usage +type MemoryCounters struct { + Total uint64 + Used uint64 + Free uint64 + UsedMMap uint64 + TotalAlloc uint64 + FreeChunks uint64 + Releasable uint64 }