Index: tools/skpbench/_benchresult.py |
diff --git a/tools/skpbench/_benchresult.py b/tools/skpbench/_benchresult.py |
index 94c110569cd738929ce9db6c0828993bfef1aa81..666878bdc9f1c66735a0f6f35eb72a14f054bbe0 100644 |
--- a/tools/skpbench/_benchresult.py |
+++ b/tools/skpbench/_benchresult.py |
@@ -25,6 +25,8 @@ class BenchResult: |
'(?P<samples>\d+)' |
'(?P<sample_ms_pad> +)' |
'(?P<sample_ms>\d+)' |
+ '(?P<clock_pad> +)' |
+ '(?P<clock>[cg]pu)' |
'(?P<metric_pad> +)' |
'(?P<metric>ms|fps)' |
'(?P<config_pad> +)' |
@@ -45,6 +47,7 @@ class BenchResult: |
self.stddev = float(match.group('stddev')[:-1]) # Drop '%' sign. |
self.samples = int(match.group('samples')) |
self.sample_ms = int(match.group('sample_ms')) |
+ self.clock = match.group('clock') |
self.metric = match.group('metric') |
self.config = match.group('config') |
self.bench = match.group('bench') |
@@ -59,7 +62,7 @@ class BenchResult: |
else: |
values = list() |
for name in ['accum', 'median', 'max', 'min', 'stddev', |
- 'samples', 'sample_ms', 'metric', 'config']: |
+ 'samples', 'sample_ms', 'clock', 'metric', 'config']: |
values.append(self.get_string(name + '_pad')) |
values.append(self.get_string(name)) |
values.append(config_suffix) |