aboutsummaryrefslogtreecommitdiff
path: root/wa/framework/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'wa/framework/output.py')
-rw-r--r--wa/framework/output.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wa/framework/output.py b/wa/framework/output.py
index 8ab10b67..3cf1f5ee 100644
--- a/wa/framework/output.py
+++ b/wa/framework/output.py
@@ -602,6 +602,12 @@ class Metric(Podable):
instance._pod_version = pod_version # pylint: disable =protected-access
return instance
+ @property
+ def label(self):
+ parts = ['{}={}'.format(n, v) for n, v in self.classifiers.items()]
+ parts.insert(0, self.name)
+ return '/'.join(parts)
+
def __init__(self, name, value, units=None, lower_is_better=False,
classifiers=None):
super(Metric, self).__init__()