1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-01 09:32:36 +01:00

Update add_metric calls to include units for performance timings

This commit is contained in:
John Richardson
2016-05-19 11:07:27 +01:00
parent 0f7aff48cc
commit 4aee83abb7
4 changed files with 18 additions and 12 deletions

View File

@@ -99,11 +99,11 @@ class Gmail(AndroidUiAutoBenchmark):
match = regex.search(line)
if match:
context.result.add_metric((match.group('key') + "_start"),
match.group('value1'))
match.group('value1'), units='ms')
context.result.add_metric((match.group('key') + "_finish"),
match.group('value2'))
match.group('value2'), units='ms')
context.result.add_metric((match.group('key') + "_duration"),
match.group('value3'))
match.group('value3'), units='ms')
def teardown(self, context):
super(Gmail, self).teardown(context)