diff options
author | 2021-05-05 09:23:17 +0200 | |
---|---|---|
committer | 2021-05-06 14:19:28 +0000 | |
commit | a606d92107d4bf0107c3f54e2c87d39311f82075 (patch) | |
tree | 4f15911d2d86dbb5227194b9acc3fea50ccde55e /src/vpp/CMakeLists.txt | |
parent | ec34fb77231c9f601520d6a2eaa5aab8c54253a6 (diff) |
stats: memory heap counters
- Add counters for the main-heap
- Add additional counters per heap:
STAT_MEM_TOTAL
STAT_MEM_USED,
STAT_MEM_FREE,
STAT_MEM_USED_MMAP,
STAT_MEM_TOTAL_ALLOC,
STAT_MEM_FREE_CHUNKS,
STAT_MEM_RELEASABLE,
The per-heap counters are organised as a two dimensional vector.
total, used and free are directly available via symlinks.
vpp_get_stats ls "^/mem/"
/mem/stat segment
/mem/stat segment/total
/mem/stat segment/used
/mem/stat segment/free
/mem/main heap
/mem/main heap/total
/mem/main heap/used
/mem/main heap/free
vpp_get_stats dump "^/mem/main\ heap$"
[0 @ 0]: 1073741776 packets /mem/main heap
[1 @ 0]: 91586688 packets /mem/main heap
[2 @ 0]: 982155088 packets /mem/main heap
[3 @ 0]: 0 packets /mem/main heap
[4 @ 0]: 1073741776 packets /mem/main heap
[5 @ 0]: 433 packets /mem/main heap
[6 @ 0]: 981708688 packets /mem/main heap
Type: feature
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I36725dde3b4b3befd27a8b4d3ba931f2d3b627cc
Diffstat (limited to 'src/vpp/CMakeLists.txt')
-rw-r--r-- | src/vpp/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp/CMakeLists.txt b/src/vpp/CMakeLists.txt index 07983502096..0b9a505f158 100644 --- a/src/vpp/CMakeLists.txt +++ b/src/vpp/CMakeLists.txt @@ -61,6 +61,7 @@ set(VPP_SOURCES app/vpe_cli.c app/version.c stats/stat_segment.c + stats/stat_segment_provider.c api/api.c api/json_format.c api/custom_dump.c |