Merge "Fixup App Compaction CL nits." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
393ba51cbd
@@ -278,17 +278,15 @@ public final class AppCompactor {
|
|||||||
+ " full, " + mPersistentCompactionCount + " persistent, "
|
+ " full, " + mPersistentCompactionCount + " persistent, "
|
||||||
+ mBfgsCompactionCount + " BFGS compactions.");
|
+ mBfgsCompactionCount + " BFGS compactions.");
|
||||||
|
|
||||||
if (mLastCompactionStats != null) {
|
pw.println(" Tracking last compaction stats for " + mLastCompactionStats.size()
|
||||||
pw.println(" Tracking last compaction stats for " + mLastCompactionStats.size()
|
+ " processes.");
|
||||||
+ " processes.");
|
if (DEBUG_COMPACTION) {
|
||||||
if (DEBUG_COMPACTION) {
|
for (Map.Entry<Integer, LastCompactionStats> entry
|
||||||
for (Map.Entry<Integer, LastCompactionStats> entry
|
: mLastCompactionStats.entrySet()) {
|
||||||
: mLastCompactionStats.entrySet()) {
|
int pid = entry.getKey();
|
||||||
int pid = entry.getKey();
|
LastCompactionStats stats = entry.getValue();
|
||||||
LastCompactionStats stats = entry.getValue();
|
pw.println(" " + pid + ": "
|
||||||
pw.println(" " + pid + ": "
|
+ Arrays.toString(stats.getRssAfterCompaction()));
|
||||||
+ Arrays.toString(stats.getRssAfterCompaction()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -506,10 +504,6 @@ public final class AppCompactor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting static String procStateListToString(Integer... processStates) {
|
|
||||||
return Arrays.toString(processStates);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final class LastCompactionStats {
|
private static final class LastCompactionStats {
|
||||||
private final long[] mRssAfterCompaction;
|
private final long[] mRssAfterCompaction;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user