mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Changes Action Logger to give epoch time
Log time changed to produce epoch time in milli seconds. Nano to milli second conversion done in uxperf result processor is removed. Tested on Mate8 and time obtained is verified.
This commit is contained in:
parent
01c9c88e79
commit
fa553ee430
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -89,13 +89,13 @@ public class BaseUiAutomation extends UiAutomatorTestCase {
|
||||
|
||||
public void start() {
|
||||
if (enabled) {
|
||||
Log.d("UX_PERF", testTag + "_start " + System.nanoTime());
|
||||
Log.d("UX_PERF", testTag + "_start " + System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() throws Exception {
|
||||
if (enabled) {
|
||||
Log.d("UX_PERF", testTag + "_end " + System.nanoTime());
|
||||
Log.d("UX_PERF", testTag + "_end " + System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -228,6 +228,7 @@ public class BaseUiAutomation extends UiAutomatorTestCase {
|
||||
UiDevice.getInstance().pressEnter();
|
||||
}
|
||||
|
||||
|
||||
public void pressBack() {
|
||||
UiDevice.getInstance().pressBack();
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ class UxPerfParser(object):
|
||||
for action, timestamps in self.actions.iteritems():
|
||||
# nanosecond precision, but not necessarily nanosecond resolution
|
||||
# truncate to guarantee millisecond precision
|
||||
ts_ms = tuple(int(ts[:-6]) for ts in timestamps)
|
||||
ts_ms = tuple(int(ts) for ts in timestamps)
|
||||
if len(ts_ms) == 2:
|
||||
start, finish = ts_ms
|
||||
duration = finish - start
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user