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

Commit e2119341 authored by Misha Wagner's avatar Misha Wagner
Browse files

Change the UID filter in KernelCpuThreadReader to only select UID 1000

This will significantly reduce the amount of data we currently collect
with CpuTimePerThreadFreq

Test: build
Change-Id: I3558536a1bda9fb75d652320612cd7ec9ce3bdd0
parent 50f84e88
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -103,10 +103,9 @@ public class KernelCpuThreadReader {

    /**
     * Default predicate for what UIDs to check for when getting processes. This filters to only
     * select system UIDs (1000-1999)
     * select UID 1000 (the {@code system} user)
     */
    private static final Predicate<Integer> DEFAULT_UID_PREDICATE =
            uid -> 1000 <= uid && uid < 2000;
    private static final Predicate<Integer> DEFAULT_UID_PREDICATE = uid -> uid == 1000;

    /**
     * Value returned when there was an error getting an integer ID value (e.g. PID, UID)