[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2788/8267] scripts/buildstats-diff: add walltime to --diff-attr
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2788/8267] scripts/buildstats-diff: add walltime to --diff-attr
- Date: Sat, 16 Dec 2017 23:43:17 +0000 (UTC)
commit 4cdf47a569c11af899e01467508110440a60c35e
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date: Thu Sep 29 17:28:05 2016 +0300
scripts/buildstats-diff: add walltime to --diff-attr
For comparing the elapsed wall clock time of tests. Default values for
--min-val and --min-absdiff are 5 seconds and 2 seconds.
(From OE-Core rev: 8e7a5beb2ce116bcd87111d190a4ac5d771e8884)
Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/buildstats-diff | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/scripts/buildstats-diff b/scripts/buildstats-diff
index c6fa803..f26a6c1 100755
--- a/scripts/buildstats-diff
+++ b/scripts/buildstats-diff
@@ -79,6 +79,11 @@ class BSTask(dict):
self['child_rusage']['ru_stime'] + self['child_rusage']['ru_utime']
@property
+ def walltime(self):
+ """Elapsed wall clock time"""
+ return self['elapsed_time'].total_seconds()
+
+ @property
def read_bytes(self):
"""Bytes read from the block layer"""
return self['iostat']['read_bytes']
@@ -306,7 +311,7 @@ def print_task_diff(bs1, bs2, val_type, min_val=0, min_absdiff=0, sort_by=('absd
else:
return "{:d}:{:02d}:{:04.1f}".format(h, m, s)
- if val_type == 'cputime':
+ if 'time' in val_type:
if human_readable:
return hms_time(val)
else:
@@ -437,12 +442,14 @@ Script for comparing buildstats of two separate builds."""
'read_bytes': 524288,
'write_bytes': 524288,
'read_ops': 500,
- 'write_ops': 500}
+ 'write_ops': 500,
+ 'walltime': 5}
min_absdiff_defaults = {'cputime': 1.0,
'read_bytes': 131072,
'write_bytes': 131072,
'read_ops': 50,
- 'write_ops': 50}
+ 'write_ops': 50,
+ 'walltime': 2}
parser.add_argument('--debug', '-d', action='store_true',
help="Verbose logging")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]