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

Issue 959513002: Refactor Extension initialization logic. Add tracing and additional histogram. (Closed)

Created:
5 years, 10 months ago by rkaplow
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor Extension initialization logic. Add tracing and an additional latency histogram. Note, this has a functional change on the Extensions.LoadAllTime metric, which didn't have the second half of the method (the part I put in LoadExtensionsMetrics()). I expect that this section does not take very long, and it makes sense for the LoadAllTime metric to measure the entire method. If you're unhappy of the functional change of the metric, another approach is to add a histogram for LoadExtensionsMetrics() specifically, but I feel this is excessive. BUG=454789 Committed: https://crrev.com/a8fd8d3b8b0356cf1fb480d90eb89eb8d8b36c4c Cr-Commit-Position: refs/heads/master@{#318120}

Patch Set 1 #

Total comments: 19

Patch Set 2 : yoz and asvitkine comments 1 #

Total comments: 2

Patch Set 3 : yoz comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -65 lines) Patch
M chrome/browser/background/background_contents_service.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 4 chunks +61 lines, -54 lines 0 comments Download
M chrome/browser/extensions/installed_loader.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
rkaplow
asvitkine@chromium.org: Please review changes in all kalman@chromium.org: Please review changes in all
5 years, 10 months ago (2015-02-24 23:52:10 UTC) #2
not at google - send to devlin
5 years, 10 months ago (2015-02-25 00:04:17 UTC) #4
Yoyo Zhou
https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc#newcode410 chrome/browser/extensions/extension_service.cc:410: // TODO:(erikkay) this should probably be deferred to a ...
5 years, 10 months ago (2015-02-25 00:19:58 UTC) #5
Alexei Svitkine (slow)
+rkaplow, can you do a first pass review of this?
5 years, 10 months ago (2015-02-25 15:17:11 UTC) #7
Alexei Svitkine (slow)
Err, ignore last email. :P
5 years, 10 months ago (2015-02-25 15:17:48 UTC) #9
Alexei Svitkine (slow)
lgtm % some suggestions https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc#newcode433 chrome/browser/extensions/extension_service.cc:433: it != extensions_to_enable.end(); ++it) { ...
5 years, 10 months ago (2015-02-25 16:10:54 UTC) #10
rkaplow
https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/extension_service.cc#newcode410 chrome/browser/extensions/extension_service.cc:410: // TODO:(erikkay) this should probably be deferred to a ...
5 years, 10 months ago (2015-02-25 16:37:49 UTC) #11
rkaplow
atwilson@chromium.org: Please review changes in browser/background
5 years, 10 months ago (2015-02-25 16:38:28 UTC) #13
Andrew T Wilson (Slow)
lgtm
5 years, 10 months ago (2015-02-25 17:49:31 UTC) #14
Alexei Svitkine (slow)
lgtm
5 years, 10 months ago (2015-02-25 18:05:15 UTC) #15
Yoyo Zhou
LGTM https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (right): https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/installed_loader.cc#newcode234 chrome/browser/extensions/installed_loader.cc:234: SCOPED_UMA_HISTOGRAM_TIMER("Extensions.LoadAllTime"); On 2015/02/25 16:37:49, rkaplow wrote: > On ...
5 years, 10 months ago (2015-02-25 19:34:29 UTC) #16
rkaplow
https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (right): https://codereview.chromium.org/959513002/diff/1/chrome/browser/extensions/installed_loader.cc#newcode234 chrome/browser/extensions/installed_loader.cc:234: SCOPED_UMA_HISTOGRAM_TIMER("Extensions.LoadAllTime"); On 2015/02/25 19:34:29, Yoyo Zhou wrote: > On ...
5 years, 10 months ago (2015-02-25 19:59:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/959513002/40001
5 years, 10 months ago (2015-02-25 20:23:42 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-25 21:28:13 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 21:28:53 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a8fd8d3b8b0356cf1fb480d90eb89eb8d8b36c4c
Cr-Commit-Position: refs/heads/master@{#318120}

Powered by Google App Engine
This is Rietveld 408576698