Loading startop/scripts/app_startup/lib/adb_utils.py +2 −2 Original line number Diff line number Diff line Loading @@ -42,8 +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) # Sleep a little bit to provide enough time for cache cleanup. time.sleep(1) def root(): """Roots adb and successive adb commands will run under root.""" Loading startop/scripts/iorap/compiler.py +1 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,7 @@ def calc_trace_end_time(trace2db: Trace2Db, MmFilemapAddToPageCache.raw_ftrace_entry).order_by( RawFtraceEntry.timestamp).first() # total_seconds() will return a float number. return first_event.raw_ftrace_entry.timestamp + trace_duration.total_seconds() def query_add_to_page_cache(trace2db: Trace2Db, trace_duration: Optional[timedelta]): Loading Loading
startop/scripts/app_startup/lib/adb_utils.py +2 −2 Original line number Diff line number Diff line Loading @@ -42,8 +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) # Sleep a little bit to provide enough time for cache cleanup. time.sleep(1) def root(): """Roots adb and successive adb commands will run under root.""" Loading
startop/scripts/iorap/compiler.py +1 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,7 @@ def calc_trace_end_time(trace2db: Trace2Db, MmFilemapAddToPageCache.raw_ftrace_entry).order_by( RawFtraceEntry.timestamp).first() # total_seconds() will return a float number. return first_event.raw_ftrace_entry.timestamp + trace_duration.total_seconds() def query_add_to_page_cache(trace2db: Trace2Db, trace_duration: Optional[timedelta]): Loading