diff options
author | Ninette Adhikari <13760198+ninetteadhikari@users.noreply.github.com> | 2024-04-12 17:33:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-12 18:04:02 +0100 |
commit | c7100972417d9a407cd46bd6cd68da515803f051 (patch) | |
tree | 25f62a47afc4dbae30276ae04493a54f0d6202d8 /scripts/lib/build_perf/report.py | |
parent | 5ce2b7d0622011a3a9036e21d68b986257944b2f (diff) | |
download | poky-c7100972417d9a407cd46bd6cd68da515803f051.tar.gz |
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: 832ab370c327cc9e09bf9e495ba03e6485643249)
Signed-off-by: Ninette Adhikari <ninette@thehoodiefirm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/build_perf/report.py')
-rw-r--r-- | scripts/lib/build_perf/report.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/build_perf/report.py b/scripts/lib/build_perf/report.py index ab77424cc7..82c56830d7 100644 --- a/scripts/lib/build_perf/report.py +++ b/scripts/lib/build_perf/report.py | |||
@@ -294,7 +294,7 @@ class SizeVal(MeasurementVal): | |||
294 | return "null" | 294 | return "null" |
295 | return self / 1024 | 295 | return self / 1024 |
296 | 296 | ||
297 | def measurement_stats(meas, prefix=''): | 297 | def measurement_stats(meas, prefix='', time=0): |
298 | """Get statistics of a measurement""" | 298 | """Get statistics of a measurement""" |
299 | if not meas: | 299 | if not meas: |
300 | return {prefix + 'sample_cnt': 0, | 300 | return {prefix + 'sample_cnt': 0, |
@@ -319,6 +319,7 @@ def measurement_stats(meas, prefix=''): | |||
319 | stats['quantity'] = val_cls.quantity | 319 | stats['quantity'] = val_cls.quantity |
320 | stats[prefix + 'sample_cnt'] = len(values) | 320 | stats[prefix + 'sample_cnt'] = len(values) |
321 | 321 | ||
322 | start_time = time # Add start time for both type sysres and disk usage | ||
322 | mean_val = val_cls(mean(values)) | 323 | mean_val = val_cls(mean(values)) |
323 | min_val = val_cls(min(values)) | 324 | min_val = val_cls(min(values)) |
324 | max_val = val_cls(max(values)) | 325 | max_val = val_cls(max(values)) |
@@ -334,6 +335,7 @@ def measurement_stats(meas, prefix=''): | |||
334 | stats[prefix + 'max'] = max_val | 335 | stats[prefix + 'max'] = max_val |
335 | stats[prefix + 'minus'] = val_cls(mean_val - min_val) | 336 | stats[prefix + 'minus'] = val_cls(mean_val - min_val) |
336 | stats[prefix + 'plus'] = val_cls(max_val - mean_val) | 337 | stats[prefix + 'plus'] = val_cls(max_val - mean_val) |
338 | stats[prefix + 'start_time'] = start_time | ||
337 | 339 | ||
338 | return stats | 340 | return stats |
339 | 341 | ||