diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-09-15 15:54:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-18 11:07:23 +0100 |
commit | 25351c7cac167b1a3e8b531e2cdf708192c6fa1f (patch) | |
tree | 57646e4145fb3d26c4d6e6901b9e9d196f1cba98 /scripts/lib | |
parent | 2930515acb5cfdcd335a76ae36fd9f7189207aa3 (diff) | |
download | openembedded-core-25351c7cac167b1a3e8b531e2cdf708192c6fa1f.tar.gz openembedded-core-25351c7cac167b1a3e8b531e2cdf708192c6fa1f.tar.bz2 openembedded-core-25351c7cac167b1a3e8b531e2cdf708192c6fa1f.zip |
scripts/oe-build-perf-report: add AggregateTestData class
Making the code a bit more readable.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/build_perf/report.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/build_perf/report.py b/scripts/lib/build_perf/report.py index eb00ccca2d..d99a36797f 100644 --- a/scripts/lib/build_perf/report.py +++ b/scripts/lib/build_perf/report.py @@ -11,12 +11,15 @@ # more details. # """Handling of build perf test reports""" -from collections import OrderedDict, Mapping +from collections import OrderedDict, Mapping, namedtuple from datetime import datetime, timezone from numbers import Number from statistics import mean, stdev, variance +AggregateTestData = namedtuple('AggregateTestData', ['metadata', 'results']) + + def isofmt_to_timestamp(string): """Convert timestamp string in ISO 8601 format into unix timestamp""" if '.' in string: |