Always splice historical data stats, debug info.

When reading network counters, always splice in xt_qtaguid values
to avoid counting backwards. Test to verify.

Remove verbose logging around global alerts, and add dumpsys debug
info for NMS and MDST. Also fix subtle bug around stats persisting
and dumping.

Bug: 5212893, 5211028
Change-Id: I783e5286637a67ee2dd2b09878198711a926d0cb
This commit is contained in:
Jeff Sharkey
2011-08-25 17:48:52 -07:00
parent 60ca02379f
commit dcaeff3175
3 changed files with 14 additions and 8 deletions

View File

@@ -707,7 +707,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
mLastPersistUidSnapshot, uidSnapshot, true);
if (forcePersist || persistUidDelta.getTotalBytes() > persistThreshold) {
writeUidStatsLocked();
mLastPersistNetworkSnapshot = networkSnapshot;
mLastPersistUidSnapshot = networkSnapshot;
}
}