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

Commit 5014eb50 authored by Adam Lesinski's avatar Adam Lesinski Committed by android-build-merger
Browse files

Merge \\\"Consume the first sample of KernelUidCpuTimeReader\\\" into nyc-dev...

Merge \\\"Consume the first sample of KernelUidCpuTimeReader\\\" into nyc-dev am: e5417a38 am: 4ae9097f
am: d748cc4d

Change-Id: I17572fc8015f8b6f3d9f8c77d35a1c5d117507b0
parents 1bcd351a d748cc4d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -84,7 +84,8 @@ public class KernelUidCpuTimeReader {
                    powerMaUs = 0;
                }

                if (callback != null) {
                // Only report if there is a callback and if this is not the first read.
                if (callback != null && mLastTimeReadUs != 0) {
                    long userTimeDeltaUs = userTimeUs;
                    long systemTimeDeltaUs = systemTimeUs;
                    long powerDeltaMaUs = powerMaUs;