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

Issue 2037883004: [Win] Add reporting of total number of modules loaded in browser process. (Closed)

Created:
4 years, 6 months ago by chrisha
Modified:
4 years, 3 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, jschuh, wfh5, grt (UTC plus 2)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Win] Add reporting of total number of modules loaded in browser process. BUG=617176, 619923 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/8645b5898bbcb15d7886daf5399c923af20b08dc Cr-Commit-Position: refs/heads/master@{#415375}

Patch Set 1 #

Patch Set 2 : Ready for review. #

Total comments: 4

Patch Set 3 : Major cleanup. #

Patch Set 4 : Remove debug code. #

Patch Set 5 : Move vfunc impls to cc file. #

Total comments: 32

Patch Set 6 : Remove unref'd vars from unittest. #

Total comments: 2

Patch Set 7 : Address grt's comments. #

Patch Set 8 : Fix missing include. #

Total comments: 6

Patch Set 9 : Refactor locking, add support for catalogs. #

Total comments: 46

Patch Set 10 : Address comments on patch 9. #

Total comments: 12

Patch Set 11 : Address grt's comments on patchset 10. #

Patch Set 12 : Small fixes. #

Total comments: 40

Patch Set 13 : Address comments from cpu, thestig and pkasting. #

Patch Set 14 : Fix typo. #

Patch Set 15 : Fix unittest. #

Patch Set 16 : Rebased. #

Patch Set 17 : Fix clang error. #

Patch Set 18 : Fix dispatch. #

Patch Set 19 : Fix constant in unittest. #

Patch Set 20 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -977 lines) Patch
M chrome/browser/chrome_notification_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/diagnostics/diagnostics_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/diagnostics/recon_diagnostics.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/diagnostics/recon_diagnostics.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -58 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_icon_controller.h View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/app_menu_icon_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/conflicting_module_view_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/conflicting_module_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/conflicts_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +25 lines, -18 lines 0 comments Download
M chrome/browser/win/enumerate_modules_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +84 lines, -110 lines 0 comments Download
M chrome/browser/win/enumerate_modules_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +387 lines, -596 lines 0 comments Download
M chrome/browser/win/enumerate_modules_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -127 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 87 (41 generated)
chrisha
PTAL?
4 years, 6 months ago (2016-06-03 17:30:40 UTC) #2
rkaplow
https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode159 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:159: CHECK(list->GetDictionary(i, &module)); DCHECK here and below https://codereview.chromium.org/2037883004/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml ...
4 years, 6 months ago (2016-06-03 18:17:32 UTC) #3
rkaplow
https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode159 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:159: CHECK(list->GetDictionary(i, &module)); On 2016/06/03 18:17:31, rkaplow wrote: > DCHECK ...
4 years, 6 months ago (2016-06-03 18:24:31 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/2037883004/diff/20001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode151 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:151: base::TimeDelta::FromSeconds(1)); please do something better than polling for the ...
4 years, 6 months ago (2016-06-06 01:38:57 UTC) #6
chrisha
Okay, completely reworked this by cleaning up the EnumerateModulesModel, and integrating the code directly into ...
4 years, 6 months ago (2016-06-15 18:36:00 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037883004/60001
4 years, 6 months ago (2016-06-15 19:18:39 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/38148)
4 years, 6 months ago (2016-06-15 20:54:14 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037883004/80001
4 years, 6 months ago (2016-06-16 14:10:05 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/38643)
4 years, 6 months ago (2016-06-16 15:29:17 UTC) #16
grt (UTC plus 2)
first pass. i suspect i'll have more comments after these are factored in. thanks for ...
4 years, 6 months ago (2016-06-16 18:27:53 UTC) #17
rkaplow
lgtm new metrics lg
4 years, 6 months ago (2016-06-16 22:24:06 UTC) #18
chrisha
Tried to integrate most of your comments. Waiting to hear back about the remaining "recon" ...
4 years, 6 months ago (2016-06-17 20:48:03 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037883004/140001
4 years, 6 months ago (2016-06-17 20:58:23 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/241112)
4 years, 6 months ago (2016-06-17 21:51:36 UTC) #23
grt (UTC plus 2)
nits while waiting for next round https://codereview.chromium.org/2037883004/diff/140001/base/lazy_instance.h File base/lazy_instance.h (right): https://codereview.chromium.org/2037883004/diff/140001/base/lazy_instance.h#newcode43 base/lazy_instance.h:43: #include "base/lazy_instance.h" i ...
4 years, 6 months ago (2016-06-20 20:36:28 UTC) #24
chrisha
Reworked all the locking, and added much more documentation as to what can be called ...
4 years, 5 months ago (2016-07-22 20:30:12 UTC) #25
grt (UTC plus 2)
next round! https://codereview.chromium.org/2037883004/diff/160001/base/lazy_instance.h File base/lazy_instance.h (right): https://codereview.chromium.org/2037883004/diff/160001/base/lazy_instance.h#newcode43 base/lazy_instance.h:43: #include "base/lazy_instance.h" ping https://codereview.chromium.org/2037883004/diff/160001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): ...
4 years, 5 months ago (2016-07-25 10:57:11 UTC) #26
chrisha
Thanks for the review Greg. Another look? https://codereview.chromium.org/2037883004/diff/160001/base/lazy_instance.h File base/lazy_instance.h (right): https://codereview.chromium.org/2037883004/diff/160001/base/lazy_instance.h#newcode43 base/lazy_instance.h:43: #include "base/lazy_instance.h" ...
4 years, 4 months ago (2016-07-26 21:21:18 UTC) #27
chrisha
Ping?
4 years, 4 months ago (2016-07-28 21:45:11 UTC) #28
grt (UTC plus 2)
awesomeness! https://codereview.chromium.org/2037883004/diff/180001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2037883004/diff/180001/chrome/browser/win/enumerate_modules_model.cc#newcode16 chrome/browser/win/enumerate_modules_model.cc:16: #include <memory> remove (included in .h) https://codereview.chromium.org/2037883004/diff/180001/chrome/browser/win/enumerate_modules_model.cc#newcode612 chrome/browser/win/enumerate_modules_model.cc:612: ...
4 years, 4 months ago (2016-07-29 07:35:34 UTC) #29
chrisha
Okay, hopefully a last look? https://codereview.chromium.org/2037883004/diff/180001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2037883004/diff/180001/chrome/browser/win/enumerate_modules_model.cc#newcode16 chrome/browser/win/enumerate_modules_model.cc:16: #include <memory> On 2016/07/29 ...
4 years, 4 months ago (2016-08-02 20:53:44 UTC) #30
grt (UTC plus 2)
lgtm.
4 years, 4 months ago (2016-08-03 07:13:54 UTC) #31
chrisha
Thanks, committing!
4 years, 4 months ago (2016-08-04 13:38:57 UTC) #32
chrisha
PTAL? cpu: chrome/browser/diagnostics pkasting: chrome/browser/ui thestig: everything else in chrome/
4 years, 4 months ago (2016-08-04 13:44:34 UTC) #39
Lei Zhang
https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/toolbar/app_menu_icon_controller.cc File chrome/browser/ui/toolbar/app_menu_icon_controller.cc (right): https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/toolbar/app_menu_icon_controller.cc#newcode89 chrome/browser/ui/toolbar/app_menu_icon_controller.cc:89: auto modules = EnumerateModulesModel::GetInstance(); auto* https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/webui/conflicts_ui.cc File chrome/browser/ui/webui/conflicts_ui.cc (right): ...
4 years, 4 months ago (2016-08-04 14:33:32 UTC) #40
Peter Kasting
LGTM, mostly food for thought https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/chrome_pages.cc File chrome/browser/ui/chrome_pages.cc (right): https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/chrome_pages.cc#newcode189 chrome/browser/ui/chrome_pages.cc:189: if (conflict_url.is_valid()) { I ...
4 years, 4 months ago (2016-08-05 00:10:09 UTC) #41
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/win/enumerate_modules_model.cc#newcode137 chrome/browser/win/enumerate_modules_model.cc:137: you need to close |store| and free |message|
4 years, 4 months ago (2016-08-11 15:00:57 UTC) #42
grt (UTC plus 2)
https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/win/enumerate_modules_model.cc File chrome/browser/win/enumerate_modules_model.cc (right): https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/win/enumerate_modules_model.cc#newcode137 chrome/browser/win/enumerate_modules_model.cc:137: On 2016/08/11 15:00:57, cpu wrote: > you need to ...
4 years, 4 months ago (2016-08-12 07:56:05 UTC) #43
chrisha
Thanks for the thorough reviews. Another look? https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/chrome_pages.cc File chrome/browser/ui/chrome_pages.cc (right): https://codereview.chromium.org/2037883004/diff/220001/chrome/browser/ui/chrome_pages.cc#newcode189 chrome/browser/ui/chrome_pages.cc:189: if (conflict_url.is_valid()) ...
4 years, 4 months ago (2016-08-12 19:04:41 UTC) #44
Peter Kasting
LGTM
4 years, 4 months ago (2016-08-13 07:52:17 UTC) #53
Lei Zhang
On 2016/08/12 19:04:41, chrisha (slow) wrote: > Thanks for the thorough reviews. Another look? Red ...
4 years, 4 months ago (2016-08-15 00:58:55 UTC) #54
cpu_(ooo_6.6-7.5)
lgtm
4 years, 4 months ago (2016-08-16 01:14:00 UTC) #55
chrisha
On 2016/08/15 00:58:55, Lei Zhang wrote: > On 2016/08/12 19:04:41, chrisha (slow) wrote: > > ...
4 years, 4 months ago (2016-08-17 17:23:05 UTC) #56
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/2037883004/310001
4 years, 4 months ago (2016-08-22 15:59:46 UTC) #59
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 4 months ago (2016-08-22 15:59:49 UTC) #61
Lei Zhang
On 2016/08/17 17:23:05, chrisha (slow) wrote: > On 2016/08/15 00:58:55, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-08-22 16:55:13 UTC) #64
chrisha
The only one that looked relevant was the win-clang failure, which I fixed (but apparently ...
4 years, 4 months ago (2016-08-22 17:15:01 UTC) #65
Lei Zhang
On 2016/08/22 17:15:01, chrisha (slow) wrote: > The only one that looked relevant was the ...
4 years, 4 months ago (2016-08-22 17:17:54 UTC) #66
chrisha
On 2016/08/22 17:17:54, Lei Zhang wrote: > On 2016/08/22 17:15:01, chrisha (slow) wrote: > > ...
4 years, 3 months ago (2016-08-26 19:24:31 UTC) #70
Lei Zhang
lgtm
4 years, 3 months ago (2016-08-26 20:23:30 UTC) #71
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/2037883004/390001
4 years, 3 months ago (2016-08-30 15:08:47 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/60690) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-30 15:10:32 UTC) #79
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/2037883004/410001
4 years, 3 months ago (2016-08-30 17:33:06 UTC) #82
commit-bot: I haz the power
Committed patchset #20 (id:410001)
4 years, 3 months ago (2016-08-30 18:51:03 UTC) #84
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/8645b5898bbcb15d7886daf5399c923af20b08dc Cr-Commit-Position: refs/heads/master@{#415375}
4 years, 3 months ago (2016-08-30 18:54:16 UTC) #86
Will Harris
4 years, 3 months ago (2016-08-30 18:56:43 UTC) #87
Message was sent while issue was closed.
🎆!

Powered by Google App Engine
This is Rietveld 408576698