OSDN Git Service

Fix bug that was causing us to lose total memory buckets.
authorDianne Hackborn <hackbod@google.com>
Tue, 23 Jul 2013 22:52:36 +0000 (15:52 -0700)
committerDianne Hackborn <hackbod@google.com>
Wed, 24 Jul 2013 00:30:30 +0000 (17:30 -0700)
commitbd754f44cd8a39bd2298e0d6496c50b79162fb90
treecfee202663a793c016a531e06ce464e903c8a9c0
parent57a7f5954cf1f9cbe99c70133863049a4be2e983
Fix bug that was causing us to lose total memory buckets.

When safely resetting stats after committing them, we were
mistakenly clearing the current memory state so we would lose
that total memory time until the memory state changes again.

Also improve the summary output to print percentages, which
make more sense for that display.

Change-Id: I0fe45fd78e97ec8b94976170dd42f4ed345a5899
services/java/com/android/server/am/ActiveServices.java
services/java/com/android/server/am/ProcessTracker.java
services/java/com/android/server/am/ServiceRecord.java