Merge "[SP11] add dumpsys support to dump stats inside providers" am: 2b4a6517bf am: e49c7caae3 am: 6c2c1baecf
Change-Id: I03ea04d5851ae4f911f9c64dbdb235aedf4cea3c
This commit is contained in:
@@ -1610,6 +1610,22 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
pw.decreaseIndent();
|
||||
pw.println();
|
||||
|
||||
pw.println("Stats Providers:");
|
||||
pw.increaseIndent();
|
||||
invokeForAllStatsProviderCallbacks((cb) -> {
|
||||
pw.println(cb.mTag + " Xt:");
|
||||
pw.increaseIndent();
|
||||
pw.print(cb.getCachedStats(STATS_PER_IFACE).toString());
|
||||
pw.decreaseIndent();
|
||||
if (includeUid) {
|
||||
pw.println(cb.mTag + " Uid:");
|
||||
pw.increaseIndent();
|
||||
pw.print(cb.getCachedStats(STATS_PER_UID).toString());
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
});
|
||||
pw.decreaseIndent();
|
||||
|
||||
pw.println("Dev stats:");
|
||||
pw.increaseIndent();
|
||||
mDevRecorder.dumpLocked(pw, fullHistory);
|
||||
|
||||
Reference in New Issue
Block a user