Set lastRss in CacheOomRanker.

This mirrors the change for a comment in cherrypicked CL ag/15771575.

Test: atest CacheOomRankerTest
Bug: 196031723
Change-Id: Id2658a356907a0ae1b8606d41e2b2adf3bc6b622
This commit is contained in:
Misha Wagner
2021-09-20 15:38:52 +01:00
parent e571dc43e1
commit 2b3ff7e854

View File

@@ -364,6 +364,7 @@ public class CacheOomRanker {
// First element is total RSS:
// frameworks/base/core/jni/android_util_Process.cpp:1192
scoredProcessRecord.proc.mState.setCacheOomRankerRss(rss[0], nowMs);
scoredProcessRecord.proc.mProfile.setLastRss(rss[0]);
}
}