summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-04-26 12:35:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-11 07:49:38 +0100
commit4d2b500a08a7b228b1e04ff546a6f92865dd6e9a (patch)
tree5a1402717889d2a9bcba2b97d2d05e88ac926ed8 /scripts/lib
parent8b58b3ae27521b3d367ce34076eb5a446c263013 (diff)
downloadpoky-4d2b500a08a7b228b1e04ff546a6f92865dd6e9a.tar.gz
oe-buildperf-report: highlight large changes in the HTML report
If the relative difference is greater than 2%, make the text bold to highlight it. (From OE-Core rev: 500e28311248713d4772480b81b10777390da909) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/build_perf/html/report.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html
index 291ad9d721..d1ba6f2578 100644
--- a/scripts/lib/build_perf/html/report.html
+++ b/scripts/lib/build_perf/html/report.html
@@ -136,10 +136,13 @@ h3 {
136 {% else %} 136 {% else %}
137 {% set result_style = "color: orange" %} 137 {% set result_style = "color: orange" %}
138 {%endif %} 138 {%endif %}
139 {% if measurement.reldiff|abs > 2 %}
140 {% set result_style = result_style + "; font-weight: bold" %}
141 {% endif %}
139 <td>{{ measurement.description }}</td> 142 <td>{{ measurement.description }}</td>
140 <td style="font-weight: bold">{{ measurement.value.mean }}</td> 143 <td style="font-weight: bold">{{ measurement.value.mean }}</td>
141 <td style="{{ result_style }}">{{ measurement.absdiff_str }}</td> 144 <td style="{{ result_style }}">{{ measurement.absdiff_str }}</td>
142 <td style="{{ result_style }}">{{ measurement.reldiff }}</td> 145 <td style="{{ result_style }}">{{ measurement.reldiff_str }}</td>
143 </tr> 146 </tr>
144 {% endfor %} 147 {% endfor %}
145 {% else %} 148 {% else %}
@@ -167,7 +170,7 @@ h3 {
167 {% else %} 170 {% else %}
168 <span style="color: orange"> 171 <span style="color: orange">
169 {% endif %} 172 {% endif %}
170 {{ measurement.absdiff_str }} ({{measurement.reldiff}}) 173 {{ measurement.absdiff_str }} ({{measurement.reldiff_str}})
171 </span></span> 174 </span></span>
172 </div> 175 </div>
173 {# Table for trendchart and the statistics #} 176 {# Table for trendchart and the statistics #}