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:30 +0100 | 
| commit | 062bdb044cc2517256e02daf012415c51fb4d430 (patch) | |
| tree | c578273fe529461f15886f3c8ad474e9ddbedddd /scripts/lib/build_perf/report.py | |
| parent | ec5a5f28e2b517b04add20768d09e33b5c62d292 (diff) | |
| download | poky-062bdb044cc2517256e02daf012415c51fb4d430.tar.gz | |
scripts/oe-build-perf-report: add AggregateTestData class
Making the code a bit more readable.
(From OE-Core rev: 25351c7cac167b1a3e8b531e2cdf708192c6fa1f)
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>
Diffstat (limited to 'scripts/lib/build_perf/report.py')
| -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 @@ | |||
| 11 | # more details. | 11 | # more details. | 
| 12 | # | 12 | # | 
| 13 | """Handling of build perf test reports""" | 13 | """Handling of build perf test reports""" | 
| 14 | from collections import OrderedDict, Mapping | 14 | from collections import OrderedDict, Mapping, namedtuple | 
| 15 | from datetime import datetime, timezone | 15 | from datetime import datetime, timezone | 
| 16 | from numbers import Number | 16 | from numbers import Number | 
| 17 | from statistics import mean, stdev, variance | 17 | from statistics import mean, stdev, variance | 
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | AggregateTestData = namedtuple('AggregateTestData', ['metadata', 'results']) | ||
| 21 | |||
| 22 | |||
| 20 | def isofmt_to_timestamp(string): | 23 | def isofmt_to_timestamp(string): | 
| 21 | """Convert timestamp string in ISO 8601 format into unix timestamp""" | 24 | """Convert timestamp string in ISO 8601 format into unix timestamp""" | 
| 22 | if '.' in string: | 25 | if '.' in string: | 
