summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-report
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-build-perf-report')
-rwxr-xr-xscripts/oe-build-perf-report6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 6c3c726ee3..a36f3c1bca 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -338,7 +338,11 @@ def print_html_report(data, id_comp, buildstats):
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 commit = get_data_item(meta, 'layers.meta.commit')
340 # 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
341 start_time = test_i['start_time'][0] 341 try:
342 # Use the commit_time if available, falling back to start_time
343 start_time = get_data_item(meta, 'layers.meta.commit_time')
344 except KeyError:
345 start_time = test_i['start_time'][0]
342 samples.append(measurement_stats(meas_i, '', start_time)) 346 samples.append(measurement_stats(meas_i, '', start_time))
343 samples[-1]['commit_num'] = commit_num 347 samples[-1]['commit_num'] = commit_num
344 samples[-1]['commit'] = commit 348 samples[-1]['commit'] = commit