mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8b58b3ae27
commit
4d2b500a08
@@ -416,9 +416,11 @@ def print_html_report(data, id_comp, buildstats):
|
||||
samples[-1]['commit_num'] = commit_num
|
||||
|
||||
absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean'])
|
||||
reldiff = absdiff * 100 / samples[id_comp]['mean']
|
||||
new_meas['absdiff'] = absdiff
|
||||
new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff)
|
||||
new_meas['reldiff'] = "{:+.1f} %".format(absdiff * 100 / samples[id_comp]['mean'])
|
||||
new_meas['reldiff'] = reldiff
|
||||
new_meas['reldiff_str'] = "{:+.1f} %".format(reldiff)
|
||||
new_meas['samples'] = samples
|
||||
new_meas['value'] = samples[-1]
|
||||
new_meas['value_type'] = samples[-1]['val_cls']
|
||||
|
||||
Reference in New Issue
Block a user