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

Commit 9feaa0fb authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android (Google) Code Review
Browse files

Merge "Disable SamplingProfilerIntegration until it's fixed."

parents ce1d004c 0b91729b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -53,7 +53,10 @@ public class SamplingProfilerIntegration {

    static {
        samplingProfilerHz = SystemProperties.getInt("persist.sys.profiler_hz", 0);
        if (samplingProfilerHz > 0) {
        // Disabling this for now, as it crashes when enabled server-side.  So adding
        // a new property ("REALLY") for those wanting to test and fix it.
        boolean really = SystemProperties.getInt("persist.sys.profiler_hz_REALLY", 0) > 0;
        if (samplingProfilerHz > 0 && really) {
            snapshotWriter = Executors.newSingleThreadExecutor();
            enabled = true;
            Log.i(TAG, "Profiler is enabled. Sampling Profiler Hz: " + samplingProfilerHz);