Trending: Use Mpps 77/23877/5
authorTibor Frank <tifrank@cisco.com>
Mon, 9 Dec 2019 12:10:07 +0000 (13:10 +0100)
committerTibor Frank <tifrank@cisco.com>
Mon, 9 Dec 2019 13:36:46 +0000 (14:36 +0100)
Change-Id: I63efaa244aa4931a8ab474bc64520e1f501ad57a
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_cpta.py
resources/tools/presentation/generator_tables.py
resources/tools/presentation/input_data_parser.py
resources/tools/presentation/specification_CPTA.yaml

index f63caa4..c9bc44c 100644 (file)
@@ -169,7 +169,7 @@ def _generate_trending_traces(in_data, job_name, build_info,
     """
 
     data_x = list(in_data.keys())
-    data_y = list(in_data.values())
+    data_y = [float(item) / 1e6 for item in in_data.values()]
 
     hover_text = list()
     xaxis = list()
index 7165196..7c99ab5 100644 (file)
@@ -124,7 +124,7 @@ def table_details(table, input_data):
                         u"data"].split(" ")[1]]).replace(u'"', u'""')
                     if column[u"data"].split(u" ")[1] in \
                         (u"conf-history", u"show-run"):
-                        col_data = col_data.replace(u" |br| ", u"", )
+                        col_data = col_data.replace(u" |br| ", u"", 1)
                         col_data = f" |prein| {col_data[:-5]} |preout| "
                     row_lst.append(f'"{col_data}"')
                 except KeyError:
index d23fa84..2f126f4 100644 (file)
@@ -429,7 +429,6 @@ class ExecutionChecker(ResultVisitor):
                           r"PAPI command history:", u"",
                           msg.message, count=1).replace(u'\n', u' |br| ').\
                 replace(u'"', u"'")
-
             self._data[u"tests"][self._test_id][u"conf-history"] += (
                 f" |br| **DUT{str(self._conf_history_lookup_nr)}:** {text}"
             )
@@ -528,7 +527,7 @@ class ExecutionChecker(ResultVisitor):
                 txt_table.align[u"Vectors/Calls"] = u"r"
 
                 text += txt_table.get_string(sortby=u"Name") + u'\n'
-            text = f" \n**DUT: {host}{socket}**\n{text}".\
+            text = f"\n**DUT: {host}{socket}**\n{text}".\
                 replace(u'\n', u' |br| ').\
                 replace(u'\r', u'').\
                 replace(u'"', u"'")
index ac7fb5d..cb2e699 100644 (file)
       height: 800
       yaxis:
         showticklabels: True
-        tickformat: ".4s"
-        title: "Throughput [pps]"
-        hoverformat: ".4s"
+        tickformat: ".5s"
+        title: "Throughput [Mpps]"
+        hoverformat: ".5s"
         gridcolor: "rgb(238, 238, 238)"
         linecolor: "rgb(238, 238, 238)"
         showline: True
         l: 70
       legend:
         orientation: "h"
-        xanchor: "center"
+        xanchor: "auto"
         traceorder: "normal"  # "grouped" does not work: bug https://github.com/plotly/plotly.js/issues/1913
-        tracegroupgap: 20
         bordercolor: "rgb(238, 238, 238)"
       paper_bgcolor: "#fff"
       plot_bgcolor: "#fff"