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

Issue 1406133002: Several Site Details / Memory metrics fixes (Closed)

Created:
5 years, 2 months ago by ncarter (slow)
Modified:
5 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, asvitkine+watch_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@no_isolate_apps4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Several Site Details / Memory metrics fixes - Fix possible O(n^4) worst case behavior (processes x widgets x frames x siteinstances) for stats gathering. - Show subframe-only processes in about:memory, which also causes them to be reported in SiteIsolation.CurrentRendererProcessCount. - Because SiteIsolation.CurrentRendererProcessCount is fixed, we need a new family of metrics, SiteIsolation.IsolateNothing*, which simulates the process-per-siteinstance process model. In tests, IsolateNothing is expected to have the value that CurrentRenderProcessCount used to. - Implement a more correct treatment of site isolation stats, which looks at parent/child transitions and handles ProcessPerSite properly. This is required for IsolateNothing to work correctly. Since options for walking the frame tree outside of content are pretty limited, this uses WebContents::ForEachFrame and (!) memoization. - Eliminate WebContents::GetSitesInTab; move its about:blank logic into the new frametree walking code in SiteDetails, which was the only caller. BUG=454526, 542909 TEST=browser_tests Committed: https://crrev.com/b2545f729554c7cbc682504d08ae450155953985 Cr-Commit-Position: refs/heads/master@{#357178}

Patch Set 1 #

Patch Set 2 : Self-review fixes / simplifications #

Total comments: 10

Patch Set 3 : Rebase of PS2 #

Patch Set 4 : Charlie's fixes #

Patch Set 5 : Fix merge conflict. #

Patch Set 6 : Small tweak #

Total comments: 2

Patch Set 7 : Fix bad merge. #

Total comments: 18

Patch Set 8 : thestig's fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -156 lines) Patch
M chrome/browser/memory_details.cc View 1 2 3 4 5 6 7 3 chunks +91 lines, -84 lines 0 comments Download
M chrome/browser/site_details.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/site_details.cc View 1 2 3 4 5 6 7 9 chunks +85 lines, -39 lines 0 comments Download
M chrome/browser/site_details_browsertest.cc View 1 2 3 4 5 6 7 21 chunks +73 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +0 lines, -24 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/20001
5 years, 2 months ago (2015-10-16 04:51:43 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 06:13:54 UTC) #4
ncarter (slow)
Hi Charlie, Please review this change. Not urgent, but it'll be nice to have.
5 years, 2 months ago (2015-10-16 17:13:51 UTC) #6
Charlie Reis
Apologies that I haven't been able to get to this sooner. Nasko, any chance you'd ...
5 years, 2 months ago (2015-10-22 23:52:44 UTC) #8
Charlie Reis
Great. One bug and a few nits below, but otherwise LGTM! Should be much faster, ...
5 years, 2 months ago (2015-10-23 19:03:40 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/80001
5 years, 1 month ago (2015-10-29 19:49:34 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/100001
5 years, 1 month ago (2015-10-29 19:53:28 UTC) #14
ncarter (slow)
Addressed Charlie's comments +jam for chrome/ OWNERS +isherman for histograms.xml OWNERS https://codereview.chromium.org/1406133002/diff/20001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): ...
5 years, 1 month ago (2015-10-29 19:55:06 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/465)
5 years, 1 month ago (2015-10-29 20:08:39 UTC) #18
Charlie Reis
https://codereview.chromium.org/1406133002/diff/100001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): https://codereview.chromium.org/1406133002/diff/100001/chrome/browser/memory_details.cc#newcode235 chrome/browser/memory_details.cc:235: // renderer process belonging to this browser. All these ...
5 years, 1 month ago (2015-10-29 20:13:42 UTC) #19
jam
On 2015/10/29 19:55:06, ncarter wrote: > Addressed Charlie's comments > > +jam for chrome/ OWNERS ...
5 years, 1 month ago (2015-10-29 20:33:50 UTC) #20
Ilya Sherman
metrics lgtm
5 years, 1 month ago (2015-10-29 22:13:36 UTC) #21
ncarter (slow)
-jam, +thestig for /chrome OWNERS https://codereview.chromium.org/1406133002/diff/100001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): https://codereview.chromium.org/1406133002/diff/100001/chrome/browser/memory_details.cc#newcode235 chrome/browser/memory_details.cc:235: // renderer process belonging ...
5 years, 1 month ago (2015-10-29 22:14:17 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/120001
5 years, 1 month ago (2015-10-29 22:16:04 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/470)
5 years, 1 month ago (2015-10-29 23:41:12 UTC) #27
Lei Zhang
lgtm, just nits: https://codereview.chromium.org/1406133002/diff/120001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): https://codereview.chromium.org/1406133002/diff/120001/chrome/browser/memory_details.cc#newcode264 chrome/browser/memory_details.cc:264: for (std::set<std::string>::iterator iter = extension_ids.begin(); convert ...
5 years, 1 month ago (2015-10-30 07:17:49 UTC) #28
ncarter (slow)
All done. https://codereview.chromium.org/1406133002/diff/120001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): https://codereview.chromium.org/1406133002/diff/120001/chrome/browser/memory_details.cc#newcode264 chrome/browser/memory_details.cc:264: for (std::set<std::string>::iterator iter = extension_ids.begin(); On 2015/10/30 ...
5 years, 1 month ago (2015-10-30 18:13:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/140001
5 years, 1 month ago (2015-10-30 18:16:27 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/472)
5 years, 1 month ago (2015-10-30 19:25:57 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406133002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406133002/140001
5 years, 1 month ago (2015-10-30 19:49:53 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-10-30 20:05:25 UTC) #38
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 20:06:32 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b2545f729554c7cbc682504d08ae450155953985
Cr-Commit-Position: refs/heads/master@{#357178}

Powered by Google App Engine
This is Rietveld 408576698