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-report12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 7812ea4540..a36f3c1bca 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -336,8 +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 samples.append(measurement_stats(meas_i)) 339 commit = get_data_item(meta, 'layers.meta.commit')
340 # Add start_time for both test measurement types of sysres and disk usage
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]
346 samples.append(measurement_stats(meas_i, '', start_time))
340 samples[-1]['commit_num'] = commit_num 347 samples[-1]['commit_num'] = commit_num
348 samples[-1]['commit'] = commit
341 349
342 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'])
343 reldiff = absdiff * 100 / samples[id_comp]['mean'] 351 reldiff = absdiff * 100 / samples[id_comp]['mean']
@@ -473,7 +481,7 @@ Examine build performance test results from a Git repository"""
473 group.add_argument('--branch', '-B', default='master', help="Branch to find commit in") 481 group.add_argument('--branch', '-B', default='master', help="Branch to find commit in")
474 group.add_argument('--branch2', help="Branch to find comparision revisions in") 482 group.add_argument('--branch2', help="Branch to find comparision revisions in")
475 group.add_argument('--machine', default='qemux86') 483 group.add_argument('--machine', default='qemux86')
476 group.add_argument('--history-length', default=25, type=int, 484 group.add_argument('--history-length', default=300, type=int,
477 help="Number of tested revisions to plot in html report") 485 help="Number of tested revisions to plot in html report")
478 group.add_argument('--commit', 486 group.add_argument('--commit',
479 help="Revision to search for") 487 help="Revision to search for")