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

Commit 72c86100 authored by Misha Wagner's avatar Misha Wagner
Browse files

Remove filtering out frequencies with zero usage for

CpuTimePerThreadFreq

This was originally included to reduce the amount of data reported. As
we now bucket the frequencies collected (ag/5327120), this is not needed.

Test: build, flash, run unit tests, manual inspection.
Change-Id: Iba86e8e3c3926301dae4d4d8320a8450874f0b11
parent 24a579db
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1668,11 +1668,6 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
                }

                for (int k = 0; k < threadCpuUsage.usageTimesMillis.length; k++) {
                    // Do not report CPU usage at a frequency when it's zero
                    if (threadCpuUsage.usageTimesMillis[k] == 0) {
                        continue;
                    }

                    StatsLogEventWrapper e =
                            new StatsLogEventWrapper(tagId, elapsedNanos, wallClockNanos);
                    e.writeInt(processCpuUsage.uid);