mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-12 10:03:31 +01:00
Changed ActionLogger class to use nano timestamps. This is because fps instrument collects data in ns as well so is possible to match the two
This commit is contained in:
wlauto
common
external
uiauto
src
com
arm
wlauto
uiauto
utils
workloads
adobereader
applaunch
appshare
gmail
googlephotos
googleplaybooks
googleslides
skype
youtube
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.currentTimeMillis());
|
||||
Log.d("UX_PERF", testTag + "_start " + System.nanoTime());
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() throws Exception {
|
||||
if (enabled) {
|
||||
Log.d("UX_PERF", testTag + "_end " + System.currentTimeMillis());
|
||||
Log.d("UX_PERF", testTag + "_end " + System.nanoTime());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
wlauto/utils/uxperf.py
Normal file → Executable file
2
wlauto/utils/uxperf.py
Normal file → Executable file
@ -94,7 +94,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) for ts in timestamps)
|
||||
ts_ms = tuple(int(int(ts) / 1e6) 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.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user