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

Issue 2420133002: Make module enumeration a low priority background task. (Closed)

Created:
4 years, 2 months ago by chrisha
Modified:
4 years, 2 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, charliea (OOO until 10-5)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make module enumeration a low priority background task. This makes the default mode of module enumeration one that is performed slowly and continuously in the blocking pool post startup. This addresses the CPU/battery regression it recently introduced. This also moves definitions for some preexisting privately defined histograms to the public repository. BUG=644258 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/6949a31c3ccf416a0e3423bb336e61165fcf5388 Cr-Commit-Position: refs/heads/master@{#426063}

Patch Set 1 #

Patch Set 2 : Moar comments! #

Total comments: 14

Patch Set 3 : Address review comments. #

Patch Set 4 : Fix small bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -35 lines) Patch
M chrome/browser/ui/webui/conflicts_ui.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/win/enumerate_modules_model.h View 1 4 chunks +55 lines, -16 lines 0 comments Download
M chrome/browser/win/enumerate_modules_model.cc View 1 2 3 10 chunks +89 lines, -18 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (15 generated)
chrisha
Pat, care to take a look?
4 years, 2 months ago (2016-10-14 18:12:11 UTC) #3
chrisha
+rkaplow for histograms.xml
4 years, 2 months ago (2016-10-14 18:12:32 UTC) #5
chrisha
https://codereview.chromium.org/2420133002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2420133002/diff/20001/tools/metrics/histograms/histograms.xml#newcode6843 tools/metrics/histograms/histograms.xml:6843: +</histogram> I added this one. The rest already existed, ...
4 years, 2 months ago (2016-10-14 18:13:23 UTC) #6
Patrick Monette
Is there an easy way to add some unittests? https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc#newcode66 chrome/browser/win/enumerate_modules_model.cc:66: ...
4 years, 2 months ago (2016-10-14 22:45:55 UTC) #7
rkaplow
https://codereview.chromium.org/2420133002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2420133002/diff/20001/tools/metrics/histograms/histograms.xml#newcode6807 tools/metrics/histograms/histograms.xml:6807: +<histogram name="Conflicts.ConfirmedBadModules"> should have unit="modules" or something https://codereview.chromium.org/2420133002/diff/20001/tools/metrics/histograms/histograms.xml#newcode6814 tools/metrics/histograms/histograms.xml:6814: ...
4 years, 2 months ago (2016-10-17 14:10:15 UTC) #8
chrisha
On 2016/10/14 22:45:55, Patrick Monette wrote: > Is there an easy way to add some ...
4 years, 2 months ago (2016-10-17 15:32:00 UTC) #9
chrisha
https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc#newcode66 chrome/browser/win/enumerate_modules_model.cc:66: const base::TimeDelta kDefaultPerModuleDelay = base::TimeDelta::FromSeconds(1); On 2016/10/14 22:45:55, Patrick ...
4 years, 2 months ago (2016-10-17 15:32:21 UTC) #10
Patrick Monette
lgtm https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2420133002/diff/20001/chrome/browser/win/enumerate_modules_model.cc#newcode835 chrome/browser/win/enumerate_modules_model.cc:835: // Windows its an atomic write. On 2016/10/17 ...
4 years, 2 months ago (2016-10-17 19:52:41 UTC) #11
rkaplow
lgtm since it's slightly confusing, I would add in the CL description that this adds ...
4 years, 2 months ago (2016-10-17 21:39:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2420133002/40001
4 years, 2 months ago (2016-10-18 16:57:15 UTC) #15
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-18 17:05:06 UTC) #17
chrisha
pkasting: Care to take a look at conflicts_ui.cc?
4 years, 2 months ago (2016-10-18 17:59:24 UTC) #19
Peter Kasting
LGTM
4 years, 2 months ago (2016-10-18 18:02:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2420133002/40001
4 years, 2 months ago (2016-10-18 18:47:21 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/300014)
4 years, 2 months ago (2016-10-18 19:50:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2420133002/60001
4 years, 2 months ago (2016-10-18 20:09:42 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-18 21:50:05 UTC) #29
chrisha
4 years, 2 months ago (2016-10-19 13:03:49 UTC) #32
(Manually adding missing CQ information.)

Patchset 4 (id:60001) landed as
https://chromium.googlesource.com/chromium/src/+/6949a31c3ccf416a0e3423bb336e...
Cr-Commit-Position: refs/heads/master@{#426063}

Powered by Google App Engine
This is Rietveld 408576698