1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-13 22:28:36 +00:00

Add units to metrics and move pauseForSplashScreen

This commit is contained in:
John Richardson 2016-05-20 14:01:52 +01:00
parent b6edd0627b
commit 7efdccf5c9
3 changed files with 7 additions and 4 deletions

View File

@ -43,8 +43,8 @@ public class UiAutomation extends UxPerfUiAutomation {
public void runUiAutomation() throws Exception {
parameters = getParams();
setScreenOrientation(ScreenOrientation.NATURAL);
pauseForSplashScreen();
setScreenOrientation(ScreenOrientation.NATURAL);
confirmAccess();
dismissWelcomeView();
gesturesTest();

View File

@ -154,9 +154,12 @@ class Multiapp(AndroidUiAutoBenchmark):
for line in wfh:
match = regex.search(line)
if match:
context.result.add_metric((match.group('key') + "_start"), match.group('value1'))
context.result.add_metric((match.group('key') + "_finish"), match.group('value2'))
context.result.add_metric((match.group('key') + "_duration"), match.group('value3'))
context.result.add_metric((match.group('key') + "_start"),
match.group('value1'), units='ms')
context.result.add_metric((match.group('key') + "_finish"),
match.group('value2'), units='ms')
context.result.add_metric((match.group('key') + "_duration"),
match.group('value3'), units='ms')
def teardown(self, context):
super(Multiapp, self).teardown(context)