diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-03-09 11:15:41 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-03-09 11:15:41 -0700 |
commit | 62793e4382b4b0b53d7373d92a62dc4e3ccbde05 (patch) | |
tree | 546560da029844767fddf7dda47c0b2430c65319 /services | |
parent | 0e24f143edd81de6ca5a4ed998e26fbb78c5db28 (diff) | |
download | frameworks_base-62793e4382b4b0b53d7373d92a62dc4e3ccbde05.zip frameworks_base-62793e4382b4b0b53d7373d92a62dc4e3ccbde05.tar.gz frameworks_base-62793e4382b4b0b53d7373d92a62dc4e3ccbde05.tar.bz2 |
Battery stats issues: fix jiffy handling, print scan counts.
Issue #19431959: Framework incorrectly assumes that kernel
clock_ticks are 10ms
We now retrieve the time of a jiffy from the kernel, and all CPU
times are now handled in milliseconds.
Issue #19571810: Add per-app breakdown of number of WiFi scans
in batterystats checkin data
Added to the report (the information was already being tracked).
Change-Id: If1702d6b9bcf851704129f1811471e68ed576a5d
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index d8a9d3e..46f07cc 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -2401,7 +2401,7 @@ public final class ActivityManagerService extends ActivityManagerNative } ps.addCpuTimeLocked(st.rel_utime - otherUTime, st.rel_stime - otherSTime, cpuSpeedTimes); - pr.curCpuTime += (st.rel_utime+st.rel_stime) * 10; + pr.curCpuTime += st.rel_utime + st.rel_stime; } else { BatteryStatsImpl.Uid.Proc ps = st.batteryStats; if (ps == null || !ps.isActive()) { |