Files
frameworks_base/core/java/android/os
Makoto Onuki 49392d335a 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
2018-04-11 16:37:57 -07:00
..
2017-11-16 22:58:45 -07:00
2018-03-20 15:59:51 -07:00
2017-08-07 15:36:10 -07:00
2017-12-05 10:46:59 -08:00
2018-04-03 11:40:46 -07:00
2018-03-20 15:59:51 -07:00
2018-03-06 17:17:43 +00:00
2017-06-28 16:49:12 -07:00
2017-08-07 15:36:10 -07:00
2017-11-21 10:17:14 -08:00
2017-11-21 10:17:14 -08:00
2018-03-21 13:59:26 +01:00