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

Commit 0204bb9e authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Log when latency tracker is enabled or disabled

Adding a log to help investigating why we're not generating latency metrics in the lab.

Test: Checked log in output
Bug: 297836588
Change-Id: Ic1b39dae9d470afd2fb826db6d2cbead1321e8f5
parent 0c7ac2cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -342,7 +342,11 @@ public class LatencyTracker {
        synchronized (mLock) {
            int samplingInterval = properties.getInt(SETTINGS_SAMPLING_INTERVAL_KEY,
                    DEFAULT_SAMPLING_INTERVAL);
            boolean wasEnabled = mEnabled;
            mEnabled = properties.getBoolean(SETTINGS_ENABLED_KEY, DEFAULT_ENABLED);
            if (wasEnabled != mEnabled) {
                Log.d(TAG, "Latency tracker " + (mEnabled ? "enabled" : "disabled") + ".");
            }
            for (int action : ACTIONS_ALL) {
                String actionName = getNameOfAction(STATSD_ACTION[action]).toLowerCase(Locale.ROOT);
                int legacyActionTraceThreshold = properties.getInt(