Merge "Further tweak to issue #issue #25371736: Don\'t include z-ram allocations in Android OS" into mnc-dr-dev am: 3b4e4dd91d
am: a42bad972c
am: 44643bad26
am: c271a8a00e
* commit 'c271a8a00e2686c371420406a12fd41c4a97e24d':
Further tweak to issue #issue #25371736: Don't include z-ram allocations in Android OS
This commit is contained in:
@@ -73,13 +73,14 @@ public final class ProcStatsEntry implements Parcelable {
|
||||
+ " avgpss=" + mAvgBgMem + " weight=" + mBgWeight);
|
||||
}
|
||||
|
||||
public ProcStatsEntry(String pkgName, int uid, String procName, long duration, long mem) {
|
||||
public ProcStatsEntry(String pkgName, int uid, String procName, long duration, long mem,
|
||||
long memDuration) {
|
||||
mPackage = pkgName;
|
||||
mUid = uid;
|
||||
mName = procName;
|
||||
mBgDuration = mRunDuration = duration;
|
||||
mAvgBgMem = mMaxBgMem = mAvgRunMem = mMaxRunMem = mem;
|
||||
mBgWeight = mRunWeight = ((double)duration) * mem;
|
||||
mBgWeight = mRunWeight = ((double)memDuration) * mem;
|
||||
if (DEBUG) Log.d(TAG, "New proc entry " + procName + ": dur=" + mBgDuration
|
||||
+ " avgpss=" + mAvgBgMem + " weight=" + mBgWeight);
|
||||
}
|
||||
|
Reference in New Issue
Block a user