diff options
Diffstat (limited to 'scripts/oe-build-perf-report')
| -rwxr-xr-x | scripts/oe-build-perf-report | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index 266700d294..a36f3c1bca 100755 --- a/scripts/oe-build-perf-report +++ b/scripts/oe-build-perf-report | |||
| @@ -336,10 +336,16 @@ 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 | 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] | ||
| 341 | samples.append(measurement_stats(meas_i, '', start_time)) | 346 | samples.append(measurement_stats(meas_i, '', start_time)) |
| 342 | samples[-1]['commit_num'] = commit_num | 347 | samples[-1]['commit_num'] = commit_num |
| 348 | samples[-1]['commit'] = commit | ||
| 343 | 349 | ||
| 344 | absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) | 350 | absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) |
| 345 | reldiff = absdiff * 100 / samples[id_comp]['mean'] | 351 | reldiff = absdiff * 100 / samples[id_comp]['mean'] |
