Skip to content
  1. Jan 05, 2017
    • Wei Wang's avatar
      Move ProcessCpuTracker.init into CpuTracker thread · a5c336c3
      Wei Wang authored
      ProcessCpuTracker.init is slow to start, moving it out of main thread
      will accelerate the boot up. ProcessCpuTracker.init is protected with
      synchronized keyword, so once the CpuTracker thread is up and running,
      we should not see any racing condition caused by this move.
      
      This changes saves ~140ms starting time on marlin
      
      Test: run test frameworks/base/tests/ActivityTests
      Bug: 33681304
      Change-Id: I260a57ca721999be3a84c0e43837d684e47e3941
      a5c336c3
  2. Jan 04, 2017
Loading