mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
oe-build-perf-report: Display more than 300 commits and date instead of commit number
- This commit updates measurement statistics data to include start_time so that time can be displayed instead of commit numbers on the chart. - It also updates default commit history length to 300. (From OE-Core rev: 64275a41c37130aaaacc5e592f94a1afe057119b) Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
836b4b57d6
commit
99861c17e7
@@ -294,7 +294,7 @@ class SizeVal(MeasurementVal):
|
||||
return "null"
|
||||
return self / 1024
|
||||
|
||||
def measurement_stats(meas, prefix=''):
|
||||
def measurement_stats(meas, prefix='', time=0):
|
||||
"""Get statistics of a measurement"""
|
||||
if not meas:
|
||||
return {prefix + 'sample_cnt': 0,
|
||||
@@ -319,6 +319,7 @@ def measurement_stats(meas, prefix=''):
|
||||
stats['quantity'] = val_cls.quantity
|
||||
stats[prefix + 'sample_cnt'] = len(values)
|
||||
|
||||
start_time = time # Add start time for both type sysres and disk usage
|
||||
mean_val = val_cls(mean(values))
|
||||
min_val = val_cls(min(values))
|
||||
max_val = val_cls(max(values))
|
||||
@@ -334,6 +335,7 @@ def measurement_stats(meas, prefix=''):
|
||||
stats[prefix + 'max'] = max_val
|
||||
stats[prefix + 'minus'] = val_cls(mean_val - min_val)
|
||||
stats[prefix + 'plus'] = val_cls(max_val - mean_val)
|
||||
stats[prefix + 'start_time'] = start_time
|
||||
|
||||
return stats
|
||||
|
||||
|
||||
Reference in New Issue
Block a user