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

Commit 59446d10 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Increase default dex2oat frequency

Given how infrequently dex2oat gets invoked, the current default of 10%
is too low. Bump the default frequency to 25%.

Test: presubmit
Bug: 319377405
Change-Id: I23fabb7fe75c660ac5a159167ca7b9b3107c4be5
parent 5bb6f919
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ public final class ProfcollectForwardingService extends SystemService {
        // Sample for a fraction of dex2oat runs.
        final int traceFrequency =
            DeviceConfig.getInt(DeviceConfig.NAMESPACE_PROFCOLLECT_NATIVE_BOOT,
                "dex2oat_trace_freq", 10);
                "dex2oat_trace_freq", 25);
        int randomNum = ThreadLocalRandom.current().nextInt(100);
        if (randomNum < traceFrequency) {
            if (DEBUG) {