Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f9d6550 authored by Edgar Arriaga García's avatar Edgar Arriaga García Committed by Android (Google) Code Review
Browse files

Merge "Avoid forced compactions from sending stats"

parents 565b61b9 046bfa0c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1860,7 +1860,10 @@ public final class CachedAppOptimizer {
                                mLastCompactionStats.remove(pid);
                                mLastCompactionStats.put(pid, memStats);
                                mCompactionStatsHistory.add(memStats);
                                if (!forceCompaction) {
                                    // Avoid polluting field metrics with forced compactions.
                                    memStats.sendStat();
                                }
                                break;
                            default:
                                // We likely missed adding this category, it needs to be added