summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-report
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/oe-build-perf-report
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/oe-build-perf-report')
-rwxr-xr-xscripts/oe-build-perf-report4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index dc999c45c1..0bd05f44ef 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -416,9 +416,11 @@ def print_html_report(data, id_comp, buildstats):
416 samples[-1]['commit_num'] = commit_num 416 samples[-1]['commit_num'] = commit_num
417 417
418 absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) 418 absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean'])
419 reldiff = absdiff * 100 / samples[id_comp]['mean']
419 new_meas['absdiff'] = absdiff 420 new_meas['absdiff'] = absdiff
420 new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff) 421 new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff)
421 new_meas['reldiff'] = "{:+.1f} %".format(absdiff * 100 / samples[id_comp]['mean']) 422 new_meas['reldiff'] = reldiff
423 new_meas['reldiff_str'] = "{:+.1f} %".format(reldiff)
422 new_meas['samples'] = samples 424 new_meas['samples'] = samples
423 new_meas['value'] = samples[-1] 425 new_meas['value'] = samples[-1]
424 new_meas['value_type'] = samples[-1]['val_cls'] 426 new_meas['value_type'] = samples[-1]['val_cls']