No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 41b37349f3 Support NetworkStatsEventLogger
The performPoll method in the NetworkStatsService can be called
for many reasons, such as RAT changed events, LinkProperties
changed events, open session method calls, forceUpdate method
calls, etc.
However, the current logging is not sufficient to trace down
the caller of performPoll. This makes it difficult to debug
frequent poll issues or performance problems.

Adding debug log to logcat is not an option, given that
performPoll might run several times per second by system server
callers.

This change adds a reason code to the performPoll method and
a helper class to log performPoll events. This will allow us
to track down the caller of performPoll and better understand
why it is being called frequently or causing performance
problems.

This change also introduces a PollEvent object, which can be
used to put related information in subsequent changes when
logging.

Sample output:
Poll counts per reason:
  DUMPSYS: 0
  FORCE_UPDATE: 6
  GLOBAL_ALERT: 0
  NETWORK_STATUS_CHANGED: 3
  OPEN_SESSION: 0
  PERIODIC: 1
  RAT_CHANGED: 1
  REG_CALLBACK: 3
  REMOVE_UIDS: 0
  UPSTREAM_CHANGED: 1

Recent poll events:
  2023-10-04T02:47:12.937370 - Poll(flags=3, PollEvent{reason=REG_CALLBACK})
  2023-10-04T02:47:13.178559 - Poll(flags=3, PollEvent{reason=FORCE_UPDATE})

Test: manual
Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsEventLoggerTest
Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest
Bug: 301141955
Change-Id: Ic6d0543ccdef12493385f45200199854b841a26b
2023-10-25 19:23:35 +08:00
bpf_progs Correct LINT path on UidOwnerMatchType 2023-10-21 01:47:05 +00:00
clatd remove clatd OWNERS 2023-09-12 11:48:34 -07:00
common Add expired services removal flag 2023-10-18 17:48:46 +08:00
Cronet Merge "Add third_party/cpu_features to Cronet's copybara" into main 2023-09-12 17:48:34 +00:00
framework Correct LINT path on UidOwnerMatchType 2023-10-21 01:47:05 +00:00
framework-t Merge "Fix broken documentation in Connectivity" into main 2023-10-13 19:30:52 +00:00
nearby Clean up obsolete aliases for Truth. 2023-10-07 00:48:10 +00:00
netbpfload Merge "execute platform bpfloader after netbpfload is done" into main 2023-10-21 16:06:44 +00:00
netd move BPF_CGROUP_INET*_BIND registration into BpfHandler 2023-10-06 14:31:20 -07:00
remoteauth Clean up obsolete aliases for Truth. 2023-10-07 00:48:10 +00:00
service Merge "Reapply "Add LocalNetworkConfig"" into main 2023-10-20 06:25:14 +00:00
service-t Support NetworkStatsEventLogger 2023-10-25 19:23:35 +08:00
staticlibs Merge "Reapply "Simplify addRoutesToLocalNetwork calls"" into main 2023-10-21 16:25:58 +00:00
tests Support NetworkStatsEventLogger 2023-10-25 19:23:35 +08:00
Tethering Merge "Reapply "Simplify addRoutesToLocalNetwork calls"" into main 2023-10-21 16:25:58 +00:00
thread Clean up obsolete aliases for Truth. 2023-10-07 00:48:10 +00:00
tools gn2bp: delete obsolete version in p/m/C 2023-03-29 16:23:45 -07:00
.gitignore Ignores VS Code files from git 2023-08-27 20:10:55 +08:00
OWNERS Move OWNER reference master=>main. 2023-07-18 17:12:49 +00:00
OWNERS_core_networking Cleanup OWNERS 2023-01-23 15:55:23 +00:00
OWNERS_core_networking_xts Adjust owners for incremental NsdManager changes 2023-08-18 14:49:34 +09:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Merge "Respect SkipPresubmit annotation for ConnectivityCoverageTests" into main 2023-10-19 06:58:40 +00:00