New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 764549 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 735799



Sign in to add a comment

AsyncInitializationActivity.onCreate is slow (low-end)

Project Member Reported by dskiba@chromium.org, Sep 12 2017

Issue description

AsyncInitializationActivity.onCreate() takes ~400ms on average on a 512 low-end device. See for example trace.html from crbug.com/735799#c31, where onCreate() took 476.847 ms.

Half of it is because of "onCreate->setContentView()" block, which is tracked in issue 762120.

The goal of this issue is to investigate what is responsible for the other half.


 

Comment 1 by dskiba@chromium.org, Sep 12 2017

Blocking: 735799
Labels: -Performance-Loading Performance-Startup
Sounds like Performance-Loading isn't a preferable label. Let me replace it with Performance-Startup so that this bug can be out from loading triage radar.
I investigated this a bit in https://docs.google.com/document/d/1OAd1fYv2ugUaiLOTnBPtebNsfvzKaxA-aQVeasmQ6dA/edit#heading=h.5dvxcuuk0mvd and got the following:

Out of 412ms taken by AsyncInitializationActivity.onCreate():
  10ms spent in maybeDispatchLaunchIntent()
  7ms spent in DocumentModeAssassin.isMigrationNecessary()
  14ms spent in super.onCreate()
  18ms spent in createWindowAndroid() block
  358ms spent in ChromeBrowserInitializer.handlePreNativeStartup()
    10ms spent in ProcessInitializationHandler.initializePreNative()
    16ms spent in ChromeBrowserInitializer:preInflationStartup()
    250ms spent in ChromeBrowserInitializer:setContentViewAndLoadLibrary()
      240ms spent in onCreate->setContentView()
    80ms spent in ChromeBrowserInitializer:postInflationStartup()

That was on 1GiB device though, and latest runs on 512MiB device show that everything ~2x longer.
Status: WontFix (was: Untriaged)
Anyway, I'm closing this for now. I'll reopen if I get time to investigate this more.

Sign in to add a comment