diff options
| author | Wenchao Tong <tongwenchao@google.com> | 2015-03-17 16:14:23 -0700 | 
|---|---|---|
| committer | Wenchao Tong <tongwenchao@google.com> | 2015-03-27 13:49:13 -0700 | 
| commit | 98170b0db191f916bf2a0f104f5d5057c2aaeaa9 (patch) | |
| tree | 980432739cc1892ab5878df19e465535ff915da7 /docs/html/sdk/api_diff/10/changes | |
| parent | 041ca26d028ae314d416cb107721ea7267af6aca (diff) | |
Keep debug information in NetworkStats files
Create two special SETs.
SET_DBG_VPN_IN is used by individual applications to know
how much traffic of the NetworkIdentity was actually moved
from a VPN app.
SET_DBG_VPN_OUT is used by the VPN app to know how much
traffic of the NetworkIdentity was deducted.
A debug application can restore the raw stats by these
entries.
  raw_traffic = recorded_entry (TAG_NONE, SET_ALL)
              + recorded_entry (TAG_NONE, SET_DBF_VPN_OUT)
              - recorded_entry (TAG_NONE, SET_DBF_VPN_IN)
The two debug SETs are not returned by
NetworkStatsService.openSession(). These debug entries are
retrieved by NetworkStatsCollection.dump().
Bug: 19536273
Change-Id: I03ef9f7667f5f2f48cbe3f6b11447fe7ead8ad3b
Diffstat (limited to 'docs/html/sdk/api_diff/10/changes')
0 files changed, 0 insertions, 0 deletions
