Log screen-on latency with tron

Bug: 36776886
Test: manual test with "adb logcat -b all" and systrace.
Change-Id: I9e7188475a79899569046892e6f08c9005b84303
This commit is contained in:
Makoto Onuki
2017-04-14 17:04:26 -07:00
parent d2b368a68d
commit 5ab5e1d951
4 changed files with 43 additions and 7 deletions

View File

@@ -93,6 +93,16 @@ public class LogMaker {
return this;
}
/**
* Set event latency.
*
* @hide // TODO Expose in the future? Too late for O.
*/
public LogMaker setLatency(long milliseconds) {
entries.put(MetricsEvent.NOTIFICATION_SINCE_CREATE_MILLIS, milliseconds);
return this;
}
/**
* This will be set by the system when the log is persisted.
* Client-supplied values will be ignored.