summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-09-15 15:54:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-18 11:07:30 +0100
commit062bdb044cc2517256e02daf012415c51fb4d430 (patch)
treec578273fe529461f15886f3c8ad474e9ddbedddd /scripts/lib
parentec5a5f28e2b517b04add20768d09e33b5c62d292 (diff)
downloadpoky-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')
-rw-r--r--scripts/lib/build_perf/report.py5
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"""
14from collections import OrderedDict, Mapping 14from collections import OrderedDict, Mapping, namedtuple
15from datetime import datetime, timezone 15from datetime import datetime, timezone
16from numbers import Number 16from numbers import Number
17from statistics import mean, stdev, variance 17from statistics import mean, stdev, variance
18 18
19 19
20AggregateTestData = namedtuple('AggregateTestData', ['metadata', 'results'])
21
22
20def isofmt_to_timestamp(string): 23def 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: