X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=api%2Fstats.go;fp=api%2Fstats.go;h=9e1ba7552ca35a794805cd3b594359777553bfa1;hb=b74e3b37479a7fa763bed1f2c76de612ee51dcbc;hp=2850b5fb5740ec46d20f2c9be19f0215c7e44847;hpb=0f46871b4cc45f2c3bd5bdb0aa0f7615795a2c6d;p=govpp.git diff --git a/api/stats.go b/api/stats.go index 2850b5f..9e1ba75 100644 --- a/api/stats.go +++ b/api/stats.go @@ -21,6 +21,7 @@ type StatsProvider interface { GetInterfaceStats(*InterfaceStats) error GetErrorStats(*ErrorStats) error GetBufferStats(*BufferStats) error + GetMemoryStats(*MemoryStats) error } // SystemStats represents global system statistics. @@ -113,3 +114,9 @@ type BufferPool struct { Used float64 Available float64 } + +// MemoryStats represents memory stats segment counters. +type MemoryStats struct { + Total float64 + Used float64 +}