From 4d2b500a08a7b228b1e04ff546a6f92865dd6e9a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 26 Apr 2018 12:35:09 +0100 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/build_perf/html/report.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/lib/build_perf/html') 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 { {% else %} {% set result_style = "color: orange" %} {%endif %} + {% if measurement.reldiff|abs > 2 %} + {% set result_style = result_style + "; font-weight: bold" %} + {% endif %} {{ measurement.description }} {{ measurement.value.mean }} {{ measurement.absdiff_str }} - {{ measurement.reldiff }} + {{ measurement.reldiff_str }} {% endfor %} {% else %} @@ -167,7 +170,7 @@ h3 { {% else %} {% endif %} - {{ measurement.absdiff_str }} ({{measurement.reldiff}}) + {{ measurement.absdiff_str }} ({{measurement.reldiff_str}}) {# Table for trendchart and the statistics #} -- cgit v1.2.3-54-g00ecf