Merge \\"Consume the first sample of KernelUidCpuTimeReader\\" into nyc-dev am: e5417a3863

am: 4ae9097f69

Change-Id: Id3ae13a5bbb55c3c9e749f87eb2f74d9600ef0f4
This commit is contained in:
Adam Lesinski
2016-06-08 22:59:14 +00:00
committed by android-build-merger

View File

@@ -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;