summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-report
diff options
context:
space:
mode:
authorNinette Adhikari <ninette@thehoodiefirm.com>2024-05-22 16:52:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-24 16:59:31 +0100
commitf66f8fa9f605d5dc39acb10226198b3ab40dcaa3 (patch)
treee8248db7d4291fe506f9faac0ced07635ef4c47d /scripts/oe-build-perf-report
parent5f602c1bd57e1623ba2d46d374782e27c9547af3 (diff)
downloadpoky-f66f8fa9f605d5dc39acb10226198b3ab40dcaa3.tar.gz
oe-build-perf-report: Add commit hash link to chart tooltip
Update tooltip to include the commit hash link to the poky repository (From OE-Core rev: 1187a460c2608369df8de08fe52a5542e4ab6ecd) Signed-off-by: Ninette Adhikari <ninette@thehoodiefirm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-build-perf-report')
-rwxr-xr-xscripts/oe-build-perf-report2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 266700d294..6c3c726ee3 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -336,10 +336,12 @@ def print_html_report(data, id_comp, buildstats):
336 test_i = test_data['tests'][test] 336 test_i = test_data['tests'][test]
337 meas_i = test_i['measurements'][meas] 337 meas_i = test_i['measurements'][meas]
338 commit_num = get_data_item(meta, 'layers.meta.commit_count') 338 commit_num = get_data_item(meta, 'layers.meta.commit_count')
339 commit = get_data_item(meta, 'layers.meta.commit')
339 # Add start_time for both test measurement types of sysres and disk usage 340 # Add start_time for both test measurement types of sysres and disk usage
340 start_time = test_i['start_time'][0] 341 start_time = test_i['start_time'][0]
341 samples.append(measurement_stats(meas_i, '', start_time)) 342 samples.append(measurement_stats(meas_i, '', start_time))
342 samples[-1]['commit_num'] = commit_num 343 samples[-1]['commit_num'] = commit_num
344 samples[-1]['commit'] = commit
343 345
344 absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) 346 absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean'])
345 reldiff = absdiff * 100 / samples[id_comp]['mean'] 347 reldiff = absdiff * 100 / samples[id_comp]['mean']