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

Commit e06be2a7 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Improve synchronization of ProcessCpuTracker" into main am:...

Merge "Merge "Improve synchronization of ProcessCpuTracker" into main am: 564f0514 am: 28d990bd" into udc-qpr-dev-plus-aosp
parents 3266caaa 6c148f56
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -337,6 +337,12 @@ public class ProcessCpuTracker {

    @UnsupportedAppUsage
    public void update() {
        synchronized (this) {
            updateLocked();
        }
    }

    private void updateLocked() {
        if (DEBUG) Slog.v(TAG, "Update: " + this);

        final long nowUptime = SystemClock.uptimeMillis();