Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Stats API: added GetMemory()
[govpp.git]
/
api
/
stats.go
diff --git
a/api/stats.go
b/api/stats.go
index
2850b5f
..
9e1ba75
100644
(file)
--- a/
api/stats.go
+++ b/
api/stats.go
@@
-21,6
+21,7
@@
type StatsProvider interface {
GetInterfaceStats(*InterfaceStats) error
GetErrorStats(*ErrorStats) error
GetBufferStats(*BufferStats) error
GetInterfaceStats(*InterfaceStats) error
GetErrorStats(*ErrorStats) error
GetBufferStats(*BufferStats) error
+ GetMemoryStats(*MemoryStats) error
}
// SystemStats represents global system statistics.
}
// SystemStats represents global system statistics.
@@
-113,3
+114,9
@@
type BufferPool struct {
Used float64
Available float64
}
Used float64
Available float64
}
+
+// MemoryStats represents memory stats segment counters.
+type MemoryStats struct {
+ Total float64
+ Used float64
+}