Merge "Fix the brief/full snapshot dumpsys" into sc-dev am: 3fbf3f02b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14570121 Change-Id: Idb1624d4414687def5c8c5ae6693d9b562da9aed
This commit is contained in:
@@ -625,7 +625,7 @@ public class SnapshotStatistics {
|
|||||||
* output.
|
* output.
|
||||||
*/
|
*/
|
||||||
public void dump(PrintWriter pw, String indent, long now, int unrecorded,
|
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.
|
// Grab the raw statistics under lock, but print them outside of the lock.
|
||||||
Stats[] l;
|
Stats[] l;
|
||||||
Stats[] s;
|
Stats[] s;
|
||||||
@@ -639,7 +639,7 @@ public class SnapshotStatistics {
|
|||||||
unrecorded, corkLevel);
|
unrecorded, corkLevel);
|
||||||
pw.println();
|
pw.println();
|
||||||
dump(pw, indent, now, l, s, "stats");
|
dump(pw, indent, now, l, s, "stats");
|
||||||
if (!full) {
|
if (brief) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pw.println();
|
pw.println();
|
||||||
|
|||||||
Reference in New Issue
Block a user