New issue
Advanced search Search tips

Issue 722813 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Better toplevel event tracing on Android

Project Member Reported by lizeb@chromium.org, May 16 2017

Issue description

On Android, tasks on the UI thread message loop go through the android Looper. Some of these tasks come from Chrome, some from the framework and some from third-party libraries.

We should trace these tasks better.

There is already a first commit adding toplevel targets after the native library is loaded: https://codereview.chromium.org/2883993002/

We should extend it to early tracing.

 
Project Member

Comment 1 by bugdroid1@chromium.org, May 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/699d393fc495fa1e835d7d72a4f308d55ffc80b2

commit 699d393fc495fa1e835d7d72a4f308d55ffc80b2
Author: lizeb <lizeb@chromium.org>
Date: Mon May 22 09:57:49 2017

android: Record early toplevel Looper events in tracing.

Toplevel looper events are recorded on Android, but only once the native
library has been loaded. This adds the support for early java tracing,
in order to trace early startup events.

For instance, this allows to discover that for a cold start on Nexus 5X:
- a ~31ms task executes between ChromeLauncherActivity and
  ChromeTabbedActivity
- Framework UI layout tasks take ~180ms on the UI thread before browser
  initialization can start.

BUG= 722813 

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

[modify] https://crrev.com/699d393fc495fa1e835d7d72a4f308d55ffc80b2/base/android/java/src/org/chromium/base/EarlyTraceEvent.java
[modify] https://crrev.com/699d393fc495fa1e835d7d72a4f308d55ffc80b2/base/android/java/src/org/chromium/base/TraceEvent.java
[modify] https://crrev.com/699d393fc495fa1e835d7d72a4f308d55ffc80b2/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java

Comment 2 by lizeb@chromium.org, May 30 2017

Status: Fixed (was: Started)

Sign in to add a comment