Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d8dd77f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "startop: Fix comments in gerrit CL 9172239."

parents 0e4ee75a ab89ecbc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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."""
+1 −0
Original line number Diff line number Diff line
@@ -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]):