Use eventlog for latency tracking
Change-Id: I82560bd0869bd4795ef350d8444f58f6d8672a7e
This commit is contained in:
@@ -60,4 +60,9 @@ option java_package com.android.systemui;
|
||||
## 3: USER_SYSTEM_UNBOUND Secondary user loses connection after system sysui has died
|
||||
## 4: SYSTEM_REGISTER_USER System sysui registers user's callbacks
|
||||
## 5: SYSTEM_UNREGISTER_USER System sysui unregisters user's callbacks (after death)
|
||||
36060 sysui_recents_connection (type|1),(user|1)
|
||||
36060 sysui_recents_connection (type|1),(user|1)
|
||||
|
||||
# ---------------------------
|
||||
# LatencyTracker.java
|
||||
# ---------------------------
|
||||
36070 sysui_latency (action|1|5),(latency|1|3)
|
||||
|
||||
@@ -25,6 +25,7 @@ import android.os.Handler;
|
||||
import android.os.SystemClock;
|
||||
import android.os.SystemProperties;
|
||||
import android.os.Trace;
|
||||
import android.util.EventLog;
|
||||
import android.util.Log;
|
||||
import android.util.SparseLongArray;
|
||||
|
||||
@@ -119,5 +120,6 @@ public class LatencyTracker {
|
||||
Trace.asyncTraceEnd(Trace.TRACE_TAG_APP, NAMES[action], 0);
|
||||
long duration = endRtc - startRtc;
|
||||
Log.i(TAG, "action=" + action + " latency=" + duration);
|
||||
EventLog.writeEvent(EventLogTags.SYSUI_LATENCY, action, (int) duration);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user