Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Issue 805693003: Add instrumentation to the Android resource extraction. (Closed)

Created:
5 years, 11 months ago by Benoit L
Modified:
5 years, 11 months ago
Reviewers:
pasko, nyquist, Ted C
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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/12e8838a9b9a1fca7fbffe82a6e34f706ac1f342 Cr-Commit-Position: refs/heads/master@{#310772}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Per pasko's suggestion, use try {} finally {} to make sure Trace.endSection() is called. #

Total comments: 8

Patch Set 3 : Put doInBackground in another method to reduce the diff size. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -15 lines) Patch
M base/android/java/src/org/chromium/base/ResourceExtractor.java View 1 2 10 chunks +38 lines, -15 lines 1 comment Download

Messages

Total messages: 13 (3 generated)
Benoit L
5 years, 11 months ago (2014-12-31 15:34:21 UTC) #2
pasko
Please do endSection() more obvious/readable on exception throwing codepaths (i.e. I propose using more 'finally'), ...
5 years, 11 months ago (2015-01-01 11:25:08 UTC) #3
Benoit L
nyquist@chromium.org: Hello, This is a first CL to get profiling data on chrome resource extraction ...
5 years, 11 months ago (2015-01-05 13:16:57 UTC) #5
pasko
thank you, it's very close to what I asked. Please factor out doInBackgroundImpl(). I am ...
5 years, 11 months ago (2015-01-07 16:59:19 UTC) #6
Benoit L
Thank you for the review. All done. https://codereview.chromium.org/805693003/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/805693003/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode59 base/android/java/src/org/chromium/base/ResourceExtractor.java:59: // This ...
5 years, 11 months ago (2015-01-07 17:30:57 UTC) #7
nyquist
lgtm
5 years, 11 months ago (2015-01-07 17:44:33 UTC) #8
pasko
LGTM, thanks! https://codereview.chromium.org/805693003/diff/40001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/805693003/diff/40001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode103 base/android/java/src/org/chromium/base/ResourceExtractor.java:103: // also add all .paks that we ...
5 years, 11 months ago (2015-01-07 17:55:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805693003/40001
5 years, 11 months ago (2015-01-09 15:04:56 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-09 16:08:56 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 16:09:54 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/12e8838a9b9a1fca7fbffe82a6e34f706ac1f342
Cr-Commit-Position: refs/heads/master@{#310772}

Powered by Google App Engine
This is Rietveld 408576698