Commit 356a4683 authored by Joanne Hugé's avatar Joanne Hugé

Show total number of measures and add a measure

parent 9612d1e6
......@@ -461,6 +461,8 @@ class MeasureSet:
self.avg = []
self.dev = []
self.nb_measures = []
for prop in props:
enumerate_prop = list(enumerate(prop))
......@@ -469,6 +471,7 @@ class MeasureSet:
self.min.append(min(map(lambda x: (x[0] - self.middle) if x[1] else self.max[-1], enumerate_prop)))
sum_prop = sum(prop)
self.nb_measures.append(sum_prop)
avg = sum(map(lambda x: abs(x[0] - self.middle)*x[1], enumerate_prop)) / sum_prop
avg_centered = sum(map(lambda x: x[0]*x[1], enumerate_prop)) / sum_prop
......@@ -595,7 +598,7 @@ class MeasureSet:
if metadata_mask != []:
metadata_info = ["{}".format(self.metadata[metadata_name]) for metadata_name in metadata_mask]
table += [[", ".join(metadata_info)] + [" - ".join(values[i]) for i in range(len(values))]]
table += [["{} ({})".format(", ".join(metadata_info), ", ".join(map(str, self.nb_measures)))] + [" - ".join(values[i]) for i in range(len(values))]]
else:
table += [[" - ".join(values[i]) for i in range(len(values))]]
......
This diff is collapsed.
{"cyclictest_wake-up_latency": {"ids": [25, 26, 28, 30], "next_id": 31}, "packet_send_timestamps": {"ids": [0, 5, 6, 7], "next_id": 8}, "packet_recv_timestamps": {"ids": [0, 1, 2], "next_id": 3}, "packet_jitter": {"ids": [0, 3, 4, 5, 6], "next_id": 7}, "packet_rtt": {"ids": [0], "next_id": 1}, "packet_jitter_tcpdump": {"ids": [0, 1], "next_id": 2}}
\ No newline at end of file
{"cyclictest_wake-up_latency": {"ids": [25, 26, 28, 30], "next_id": 31}, "packet_send_timestamps": {"ids": [0, 5, 6, 7], "next_id": 8}, "packet_recv_timestamps": {"ids": [0, 1, 2], "next_id": 3}, "packet_jitter": {"ids": [0, 3, 4, 5, 6, 7], "next_id": 8}, "packet_rtt": {"ids": [0], "next_id": 1}, "packet_jitter_tcpdump": {"ids": [0, 1], "next_id": 2}}
\ No newline at end of file
{"measure_sets": [{"measure_type": "packet_jitter", "props_names": ["jitter"], "units": ["us"], "middle": 327, "props": [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 2, 0, 0, 1, 4, 0, 1, 1, 4, 0, 4, 3, 3, 4, 6, 5, 4, 3, 7, 4, 6, 3, 3, 3, 6, 3, 1, 3, 3, 7, 7, 10, 9, 11, 25, 23, 53, 63, 89, 151, 216, 319, 412, 615, 785, 1055, 1469, 1982, 2408, 3038, 3666, 4275, 4400, 4793, 4871, 4569, 4054, 3437, 2765, 2185, 1775, 1559, 1401, 1378, 1517, 1714, 2045, 2571, 3137, 4049, 5077, 6544, 8079, 9875, 11367, 12188, 12052, 11682, 10614, 9900, 9956, 10906, 12621, 15561, 19680, 24378, 29812, 34128, 37229, 36986, 59084, 19061, 12629, 7853, 5244, 4354, 4104, 4200, 4629, 5069, 5788, 6922, 8224, 10035, 11531, 12730, 12798, 11827, 9754, 7314, 5324, 3500, 2388, 1756, 1394, 1424, 1374, 1216, 1245, 1167, 1017, 1034, 945, 958, 1016, 1088, 1421, 1811, 2521, 3223, 3896, 4899, 5259, 5311, 5309, 4885, 4165, 3416, 2679, 2043, 1592, 1193, 959, 779, 722, 618, 551, 429, 405, 281, 218, 197, 127, 100, 86, 82, 73, 39, 25, 25, 23, 15, 12, 7, 11, 8, 6, 5, 9, 1, 15, 3, 11, 3, 3, 1, 5, 4, 7, 2, 7, 0, 2, 1, 2, 0, 3, 2, 2, 2, 2, 2, 3, 3, 1, 1, 2, 2, 2, 2, 0, 2, 0, 1, 2, 2, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0]], "props_type": "histogram", "metadata": {"board": "Onyx", "ker": "4.19", "boot_p": "isolcpus", "i": "1000us", "delta": "none", "prio": "99", "load": "ssh", "duration": "0h11", "qdisc": "pfifo_fast", "etf_offset": "none", "route": "E2E"}}]}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment