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

Commit 0b91729b authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

Disable SamplingProfilerIntegration until it's fixed.

Change-Id: I685e0600414836d0caae8e37ee7e97cabeb555ce
parent 95b831be
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);