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

Commit a13ea6fd authored by Rafal Slawik's avatar Rafal Slawik Committed by Android (Google) Code Review
Browse files

Merge "Invoke rss_hwm_reset binary"

parents ba43dba3 44b8814d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2627,6 +2627,8 @@ message NativeProcessMemoryState {
 *
 * Pulled from StatsCompanionService for all managed processes (from ActivityManagerServie)
 * and for selected native processes.
 *
 * Pulling this atom resets high-water mark counters for all processes.
 */
message ProcessMemoryHighWaterMark {
    // The uid if available. -1 means not available.
+3 −1
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ import android.os.StatsDimensionsValue;
import android.os.StatsLogEventWrapper;
import android.os.SynchronousResultReceiver;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.os.Temperature;
import android.os.UserHandle;
import android.os.UserManager;
@@ -1140,7 +1141,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
            e.writeLong(rssHighWaterMarkInBytes);
            pulledData.add(e);
        }
        // TODO(b/119598534): Reset HWM counters here.
        // Invoke rss_hwm_reset binary to reset RSS HWM counters for all processes.
        SystemProperties.set("sys.rss_hwm_reset.on", "1");
    }

    private void pullBinderCallsStats(