summaryrefslogtreecommitdiffstats
path: root/nfvbench/packet_stats.py
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2019-06-23 09:24:54 -0700
committerahothan <ahothan@cisco.com>2019-06-23 09:32:08 -0700
commit108a9f65ed0792ccb427e081ef3068002443983e (patch)
tree2d5caffcdfb6e43f48278b316c2bded2eac8f5b1 /nfvbench/packet_stats.py
parenta502eb730cb7f5d898769d6958a03c28878332bb (diff)
NFVBENCH-95 Add HdrHistogram encodes returned by TRex to JSON results
Change-Id: Id80da949f7b1f3736558facd0128a0bd82b35010 Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/packet_stats.py')
-rw-r--r--nfvbench/packet_stats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nfvbench/packet_stats.py b/nfvbench/packet_stats.py
index 4b9eac5..3203b72 100644
--- a/nfvbench/packet_stats.py
+++ b/nfvbench/packet_stats.py
@@ -237,6 +237,8 @@ class PacketPathStats(object):
results = {'lat_min_usec': latency.min_usec,
'lat_max_usec': latency.max_usec,
'lat_avg_usec': latency.avg_usec}
+ if latency.hdrh:
+ results['hdrh'] = latency.hdrh
else:
results = {}
results['packets'] = counters