DescriptionSpeed up Android resource extraction in the common case (nothing to do)
In the vast majority of cases (no update and no locale change), there is
actually nothing to extract at startup. This commit fixes the logic that
allows for a quick exit in this case. Instrumentation shows that the
cost of the useless checks that are currently done is very large (400+ms
on hammerhead with Lollipop for a cold start).
Add instrumentation to the Android resource extraction.
The instrumentation uses android.os.Trace instead of the more common
org.chromium.base.TraceEvent as the resource extraction is typically done before
the native library initialization, so TraceEvent calls are dropped (per
TraceEvent documentation).
BUG=445718
Committed: https://crrev.com/648a2e7ab2989441a5df20b19d61cc2be9e166fe
Cr-Commit-Position: refs/heads/master@{#311312}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebase. #Patch Set 3 : Remove filenames as it is not required and not used elsewhere. #Patch Set 4 : Rebase #Patch Set 5 : Diff against base issue 805693003 #
Total comments: 4
Patch Set 6 : Addressing pasko's comments. #Patch Set 7 : With proper diff against previous version. #
Total comments: 4
Patch Set 8 : Addressing nyquist's comment. #Patch Set 9 : Rebase. #Patch Set 10 : Rebase. #Messages
Total messages: 17 (3 generated)
|