aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/VppCounters.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-08-13 14:19:29 +0200
committerVratko Polak <vrpolak@cisco.com>2019-08-14 08:02:43 +0000
commitee01931ec5ccb8475ee4838ed07e686a528b84bd (patch)
tree09e11f7c8823d8f5078b2b4f39602e6453f703a7 /resources/libraries/python/VppCounters.py
parent9e476b274acf41b5ac358bc4dba3a0f1e16f04b2 (diff)
Add show memory to show_vpp_statistics
https://lists.fd.io/g/csit-dev/message/2867 Change-Id: I8934218f2ccac9a458cec37e71e403db7d49281c Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/VppCounters.py')
-rw-r--r--resources/libraries/python/VppCounters.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/libraries/python/VppCounters.py b/resources/libraries/python/VppCounters.py
index 2605024edd..f847ca6901 100644
--- a/resources/libraries/python/VppCounters.py
+++ b/resources/libraries/python/VppCounters.py
@@ -165,6 +165,18 @@ class VppCounters(object):
PapiSocketExecutor.run_cli_cmd(node, 'show hardware verbose')
@staticmethod
+ def vpp_show_memory(node):
+ """Run "show memory" debug CLI command.
+
+ Currently, every flag is hardcoded, giving the longest output.
+
+ :param node: Node to run command on.
+ :type node: dict
+ """
+ PapiSocketExecutor.run_cli_cmd(
+ node, 'show memory verbose api-segment stats-segment main-heap')
+
+ @staticmethod
def vpp_clear_runtime(node):
"""Run "clear runtime" CLI command.
@@ -318,6 +330,7 @@ class VppCounters(object):
VppCounters.vpp_show_errors(node)
VppCounters.vpp_show_hardware_verbose(node)
VppCounters.vpp_show_runtime(node)
+ VppCounters.vpp_show_memory(node)
@staticmethod
def show_statistics_on_all_duts(nodes, sleeptime=5):