commit | e9bda1dd6852d82b2db43d0a47e936daf2ddcae6 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Jun 04 12:29:00 2013 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Jun 06 14:35:34 2013 -0700 |
tree | 1f6ff8b9bd5ccd8b3fd75f73c72943dfdf6ed2e4 | |
parent | 36b169250bf21b569e499e064c37ea3e353b4cc1 [diff] |
Accumulate network statistics based on deltas. Network stats are now read out of the kernel in one sweep, instead of reading per-UID. We now accumulate the delta traffic between each stats snapshot using the well-tested SamplingCounter pattern. Since Wi-Fi and mobile traffic have different costs, track each separately. Avoids counting misc interfaces like loopback and ethernet under total. Bug: 5543387 Change-Id: I642004dc530113c27ef79f2abbae51d8af30117f