From 2ae4f03578891bd51aab0d665955e268ff06b27a Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Thu, 8 Aug 2019 18:28:32 -0700 Subject: startop: Change trace duration in compiler.py to timedelta. The time in timestamp is second, while the trace duration is millisecond. Using timedelta to fix this ambiguity. Test: pytest compiler_test.py Change-Id: I6c445c3dac1b60aec77ead14df021b8a2dda7b5e --- startop/scripts/app_startup/lib/adb_utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'startop/scripts/app_startup/lib/adb_utils.py') diff --git a/startop/scripts/app_startup/lib/adb_utils.py b/startop/scripts/app_startup/lib/adb_utils.py index 1c60a17ada1b..e56a96848895 100644 --- a/startop/scripts/app_startup/lib/adb_utils.py +++ b/startop/scripts/app_startup/lib/adb_utils.py @@ -42,6 +42,8 @@ def logcat_save_timestamp() -> str: def vm_drop_cache(): """Free pagecache and slab object.""" cmd_utils.run_adb_shell_command('echo 3 > /proc/sys/vm/drop_caches') + # Sleep a little bit to provide enougth time for cache cleanup. + time.sleep(2) def root(): """Roots adb and successive adb commands will run under root.""" -- cgit v1.2.3