android: Add thread time to early TraceEvent, make timings more precise

Desktop / Chromium - lizeb [chromium.org] - 13 July 2017 10:59 EDT

This CL allows early trace events to show thread time in addition to wall clock time. For instance, on a Nexus 5X running N, this shows that the first framework-created "android.view.Choreographer$FrameHandler" task is largely spent blocked.

Also, on Android >= JB MR1, improve the resolution of timings from ms to us. For JB, keep the same resolution.

Review-Url: https://codereview.chromium.org/2967023002 Cr-Commit-Position: refs/heads/master@{#486381}

5e25326 android: Add thread time to early TraceEvent, make timings more precise.
base/android/early_trace_event_binding.cc | 26 ++++++-------
.../src/org/chromium/base/EarlyTraceEvent.java | 43 +++++++++++++++-------
base/trace_event/trace_event.h | 36 ++++++++++++++++++
base/trace_event/trace_log.cc | 18 +++++++--
base/trace_event/trace_log.h | 7 ++++
5 files changed, 100 insertions(+), 30 deletions(-)

Upstream: git.chromium.org


  • Share