From: Markus Lehtonen Date: Fri, 15 Sep 2017 12:54:55 +0000 (+0300) Subject: scripts/oe-build-perf-report: tidy up html syntax X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~19963 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10883bb49ad2f5309883fd352cf320b2e1648615;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/oe-build-perf-report: tidy up html syntax Fix some problems in the html syntax of the generated report: - prevent empty rows in the summary table - add one missing column in the results table Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 165cbb811ce..f983a4a09c4 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html @@ -118,29 +118,32 @@ h3 { {% else %} {% set row_style = 'style="background-color: #ffffff"' %} {% endif %} - {{ test.name }}: {{ test.description }} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} - {# add empty cell in place of the test name#} - {% if loop.index > 1 %}{% endif %} - {% if measurement.absdiff > 0 %} - {% set result_style = "color: red" %} - {% elif measurement.absdiff == measurement.absdiff %} - {% set result_style = "color: green" %} - {% else %} - {% set result_style = "color: orange" %} - {%endif %} - {{ measurement.description }} - {{ measurement.value.mean }} - {{ measurement.absdiff_str }} - {{ measurement.reldiff }} - + + {% if loop.index == 1 %} + {{ test.name }}: {{ test.description }} + {% else %} + {# add empty cell in place of the test name#} + + {% endif %} + {% if measurement.absdiff > 0 %} + {% set result_style = "color: red" %} + {% elif measurement.absdiff == measurement.absdiff %} + {% set result_style = "color: green" %} + {% else %} + {% set result_style = "color: orange" %} + {%endif %} + {{ measurement.description }} + {{ measurement.value.mean }} + {{ measurement.absdiff_str }} + {{ measurement.reldiff }} + {% endfor %} {% else %} {{test.status }} {% endif %} - {% endfor %} @@ -186,6 +189,7 @@ h3 { Stdev{{ measurement.value.stdev }}
+