Skip to content
Snippets Groups Projects
Commit 564f0514 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Gerrit Code Review
Browse files

Merge "Improve synchronization of ProcessCpuTracker" into main

parents 75a671c7 e6bfa6b9
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment