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

Commit 96a153a3 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Don't output latency if it wasn't started

Test: Make sure you don't get double latency output for a single
action.
Fixes: 32085767

Change-Id: I7f57f974737ce21e8513688a8d5fbf80a1f0571b
parent 85730569
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ public class LatencyTracker {
        if (startRtc == -1) {
            return;
        }
        mStartRtc.delete(action);
        Trace.asyncTraceEnd(Trace.TRACE_TAG_APP, NAMES[action], 0);
        long duration = endRtc - startRtc;
        Log.i(TAG, "action=" + action + " latency=" + duration);