From a63ba59260cd1bb3f5c16e395ace45a61f1d4461 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 19 Jul 2011 23:47:12 -0700 Subject: Add operation counts to network statistics. Provide API to increment "operation counts" for a UID and tag, used to eventually derive bytes/operation stats. Internally is stored at network layer, but should belong at data layer. Switch profiling to use data layer stats, which are emulated by summarizing network layer details. Read packet counts from new /proc/ columns and collect them into NetworkStatsHistory. Prevent double-counting by ignoring values from first snapshot. Watch for duplicate /proc/ entries. Update tests to verify packet and operation counters. Bug: 5052136, 5097392 Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09 --- core/tests/coretests/res/raw/history_v1 | Bin 0 -> 144 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 core/tests/coretests/res/raw/history_v1 (limited to 'core/tests/coretests/res') diff --git a/core/tests/coretests/res/raw/history_v1 b/core/tests/coretests/res/raw/history_v1 new file mode 100644 index 0000000..de79491 Binary files /dev/null and b/core/tests/coretests/res/raw/history_v1 differ -- cgit v1.1