diff options
author | Makoto Onuki <omakoto@google.com> | 2018-04-11 13:51:02 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2018-04-11 16:37:57 -0700 |
commit | 49392d335af8559169238bb9cb4fc2911192adea (patch) | |
tree | 00e282f2abece29400a55455b1d754af5ee92ff3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | cb7b92697a3246e5f8be8fd0c1907a22776d6ace (diff) |
Add stats logging to ServiceManager and NPMS
ServiceManager:
- Do an event log every N getService() calls with total time spent
in getService().
where N = 100 for core UIDs and 200 for other apps.
- Do an event log if getService() takes longer than N ms.
where N = 10 for core UIDs and 50 for other apps.
... with some extra throttling.
NPMS:
- Do the basic "stats logger" log for updateNetworkEnabledNL() and
isUidNetworkingBlocked()
This CL also enhances StatsLogegr so it now can show the slowest call
and the max # of calls per-second.
Bug: 77853238
Test: Manual test:
- Insert a SIM card
- Set data limit
- toggle airplane mode
- toggle wifi
- toggle mobile data
Then
- "dumpsys netpolicy" and "dumpsys activity processes" and check the stats
- also check "adb logcat -b all | grep ' service_manager'"
Change-Id: I5789541063f95d0eac501189816c8604a4571ba0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions