aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-01-17 13:03:11 +0100
committerTibor Frank <tifrank@cisco.com>2022-01-17 13:03:11 +0100
commit6a16f198aa113313c705231e671cce02963fae78 (patch)
treee1f868ff3a2ae612af6c50585bc698aac646b1fe /resources
parent0cdda6c6612da7ae37de78e3d2a0b2272bab742a (diff)
PAL: Fix sh-run
- do not post-process telemetry data Signed-off-by: Tibor Frank <tifrank@cisco.com> Change-Id: Ia381964ae0a1a36f30a8aee62fe3e12a72e51df1
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_tables.py32
-rw-r--r--resources/tools/presentation/specifications/report/environment.yaml4
2 files changed, 11 insertions, 25 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 1e1307b5bc..1a3e46ab8e 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -297,29 +297,15 @@ def table_oper_data_html(table, input_data):
threads = dict({idx: list() for idx in range(len(runtime))})
for idx, run_data in runtime.items():
for gnode, gdata in run_data.items():
- if gdata[u"vectors"] > 0:
- clocks = gdata[u"clocks"] / gdata[u"vectors"]
- elif gdata[u"calls"] > 0:
- clocks = gdata[u"clocks"] / gdata[u"calls"]
- elif gdata[u"suspends"] > 0:
- clocks = gdata[u"clocks"] / gdata[u"suspends"]
- else:
- clocks = 0.0
- if gdata[u"calls"] > 0:
- vectors_call = gdata[u"vectors"] / gdata[u"calls"]
- else:
- vectors_call = 0.0
- if int(gdata[u"calls"]) + int(gdata[u"vectors"]) + \
- int(gdata[u"suspends"]):
- threads[idx].append([
- gnode,
- int(gdata[u"calls"]),
- int(gdata[u"vectors"]),
- int(gdata[u"suspends"]),
- clocks,
- vectors_call
- ])
-
+ threads[idx].append([
+ gnode,
+ int(gdata[u"calls"]),
+ int(gdata[u"vectors"]),
+ int(gdata[u"suspends"]),
+ float(gdata[u"clocks"]),
+ float(gdata[u"vectors"] / gdata[u"calls"]) \
+ if gdata[u"calls"] else 0.0
+ ])
bold = ET.SubElement(tcol, u"b")
bold.text = (
f"Host IP: {dut_data.get(u'host', '')}, "
diff --git a/resources/tools/presentation/specifications/report/environment.yaml b/resources/tools/presentation/specifications/report/environment.yaml
index a1f4f18d33..1c02347c11 100644
--- a/resources/tools/presentation/specifications/report/environment.yaml
+++ b/resources/tools/presentation/specifications/report/environment.yaml
@@ -270,5 +270,5 @@
format:
html:
- full
- pdf:
- - minimal
+ # pdf:
+ # - minimal