Merge \"Consume the first sample of KernelUidCpuTimeReader\" into nyc-dev
am: e5417a3863
Change-Id: I6188a7261443e192fb355033f7ff1cc01ea47c33
This commit is contained in:
@@ -84,7 +84,8 @@ public class KernelUidCpuTimeReader {
|
|||||||
powerMaUs = 0;
|
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 userTimeDeltaUs = userTimeUs;
|
||||||
long systemTimeDeltaUs = systemTimeUs;
|
long systemTimeDeltaUs = systemTimeUs;
|
||||||
long powerDeltaMaUs = powerMaUs;
|
long powerDeltaMaUs = powerMaUs;
|
||||||
|
|||||||
Reference in New Issue
Block a user