summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index 2393247b22..adf4112ca6 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -216,6 +216,12 @@ class TestResult:
self.stdout = stdout
self.stderr = stderr
+# A performance metric measured in this test run.
+PerfMetric = NamedTuple('PerfMetric',
+ [('change', MetricChange),
+ ('stat', PerfStat),
+ ('baseline', Optional[Baseline]) ])
+
class TestRun:
def __init__(self) -> None:
self.start_time = None # type: Optional[datetime]
@@ -243,7 +249,7 @@ class TestRun:
# [(change, PerfStat)] where change is one of the MetricChange
# constants: NewMetric, NoChange, Increase, Decrease.
# NewMetric happens when the previous git commit has no metric recorded.
- self.metrics = [] # type: List[Tuple[MetricChange, PerfStat, Optional[Baseline]]]
+ self.metrics = [] # type: List[PerfMetric]
global t
t = TestRun()