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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user