OSDN Git Service

Consume the first sample of KernelUidCpuTimeReader
authorAdam Lesinski <adamlesinski@google.com>
Wed, 8 Jun 2016 21:19:09 +0000 (14:19 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 8 Jun 2016 21:19:09 +0000 (14:19 -0700)
commite7f4f0297fe77fd76f944b9a3134534962833262
tree00a356c14288f436242f570e3fe15950109fdc8d
parent00681d0e7845978c9137f9360e371fca64b03420
Consume the first sample of KernelUidCpuTimeReader

If the system_server crashes, when it starts back up
it will assume that the entries in kernelUidCpuTimeReader
are all fresh and we will end up double counting cpu time
and power.

Bug:29163081
Change-Id: I73e693199c170229af57efd610950e90263ac9bc
core/java/com/android/internal/os/KernelUidCpuTimeReader.java