Merge "Fix the brief/full snapshot dumpsys" into sc-dev am: 3fbf3f02b5 am: 7b9087af6a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14570121

Change-Id: I28e91308a01021030ab134eeb9fcc3ffe095cb1b
This commit is contained in:
Lee Shombert
2021-05-20 00:15:51 +00:00
committed by Automerger Merge Worker

View File

@@ -625,7 +625,7 @@ public class SnapshotStatistics {
* output.
*/
public void dump(PrintWriter pw, String indent, long now, int unrecorded,
int corkLevel, boolean full) {
int corkLevel, boolean brief) {
// Grab the raw statistics under lock, but print them outside of the lock.
Stats[] l;
Stats[] s;
@@ -639,7 +639,7 @@ public class SnapshotStatistics {
unrecorded, corkLevel);
pw.println();
dump(pw, indent, now, l, s, "stats");
if (!full) {
if (brief) {
return;
}
pw.println();