Call buildWorkingProcs in dumpProto

dumpProto() currently does not dump any processes unless "dumpsys
cpuinfo" is called first, because we did not call buildWorkingProcs
in dumpProto().

Bug: 146086163
Test: Build and dumpsys cpuinfo --proto
Change-Id: I992eff6f429397424165277b7145cef295571982
This commit is contained in:
Mike Ma
2020-01-22 18:31:35 -08:00
parent 881254f4cb
commit b17f056cfc

View File

@@ -753,6 +753,8 @@ public class ProcessCpuTracker {
proto.write(CpuUsageProto.Load.LOAD15, mLoad15);
proto.end(currentLoadToken);
buildWorkingProcs();
proto.write(CpuUsageProto.NOW, now);
proto.write(CpuUsageProto.LAST_SAMPLE_TIME, mLastSampleTime);
proto.write(CpuUsageProto.CURRENT_SAMPLE_TIME, mCurrentSampleTime);