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

Issue 2139363006: Reland: Add MemoryCoordinator (Closed)

Created:
4 years, 5 months ago by bashi
Modified:
4 years, 5 months ago
Reviewers:
haraken, chrisha, jam, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Add MemoryCoordinator Original description: This CL adds MemoryCoordinator mojo interface and its implementation. When --enable-features=MemoryCoordinator is specified the browser and renderers create their MemoryCoordinators. MemoryCoordinatorImpl (which lives in the browser process) creates a mojo message pipe when a renderer is launched. This CL doesn't add actual handling of memory events, which will be implemented in follow-up CLs. BUG=617492 TBR=chrisha@chromium.org,haraken@chromium.org,dcheng@chromium.org,jam@chromium.org Committed: https://crrev.com/1bb6fc3c4283aa25701f243bccb47ab97a3f6ee4 Cr-Commit-Position: refs/heads/master@{#405434}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -33 lines) Patch
M components/memory_coordinator.gypi View 2 chunks +19 lines, -1 line 1 comment Download
M components/memory_coordinator/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/memory_coordinator/browser/BUILD.gn View 1 chunk +9 lines, -3 lines 0 comments Download
A components/memory_coordinator/browser/memory_coordinator.h View 1 chunk +42 lines, -0 lines 0 comments Download
A components/memory_coordinator/browser/memory_coordinator.cc View 1 chunk +56 lines, -0 lines 0 comments Download
M components/memory_coordinator/child/BUILD.gn View 1 chunk +5 lines, -1 line 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.h View 2 chunks +14 lines, -6 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.cc View 1 chunk +19 lines, -5 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl_unittest.cc View 5 chunks +15 lines, -17 lines 0 comments Download
M components/memory_coordinator/common/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
A components/memory_coordinator/common/memory_coordinator_features.h View 1 chunk +24 lines, -0 lines 0 comments Download
A components/memory_coordinator/common/memory_coordinator_features.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M components/memory_coordinator/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/memory_coordinator/public/interfaces/memory_coordinator.mojom View 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.h View 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 3 chunks +7 lines, -0 lines 0 comments Download
A content/browser/memory/memory_coordinator_browsertest.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 2 chunks +2 lines, -0 lines 1 comment Download
M content/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (2 generated)
bashi
Trying to reland. https://codereview.chromium.org/2139363006/diff/1/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/2139363006/diff/1/content/content_tests.gypi#newcode1400 content/content_tests.gypi:1400: '../components/components.gyp:memory_coordinator_common', Added this line.
4 years, 5 months ago (2016-07-14 03:40:05 UTC) #1
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/2139363006/1
4 years, 5 months ago (2016-07-14 03:40:24 UTC) #3
haraken
LGTM
4 years, 5 months ago (2016-07-14 03:43:12 UTC) #4
dcheng
FWIW, it's useful to upload the original patch as PS1 when relanding. Then it's easy ...
4 years, 5 months ago (2016-07-14 03:49:33 UTC) #5
bashi
On 2016/07/14 03:49:33, dcheng wrote: > FWIW, it's useful to upload the original patch as ...
4 years, 5 months ago (2016-07-14 03:50:46 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-14 04:39:53 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/1bb6fc3c4283aa25701f243bccb47ab97a3f6ee4 Cr-Commit-Position: refs/heads/master@{#405434}
4 years, 5 months ago (2016-07-14 04:41:42 UTC) #9
bashi
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2150843002/ by bashi@chromium.org. ...
4 years, 5 months ago (2016-07-14 05:20:11 UTC) #10
Lei Zhang
If you wait long enough, the Windows bots will be converted to GN and this ...
4 years, 5 months ago (2016-07-14 05:34:55 UTC) #11
Lei Zhang
https://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Windows%20Builder%20%28DrMemory%29/builds/17519/steps/compile/logs/stdio failed differently: content_browsertests.memory_coordinator_browsertest.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall memory_coordinator::MemoryCoordinator::NumChildrenForTesting(void)" ...
4 years, 5 months ago (2016-07-14 05:40:12 UTC) #12
Lei Zhang
On 2016/07/14 05:40:12, Lei Zhang (Slow Thursday) wrote: > https://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Windows%20Builder%20%28DrMemory%29/builds/17519/steps/compile/logs/stdio > failed differently: Ah, that ...
4 years, 5 months ago (2016-07-14 05:41:49 UTC) #13
bashi
4 years, 5 months ago (2016-07-14 05:45:43 UTC) #14
Message was sent while issue was closed.
On 2016/07/14 05:41:49, Lei Zhang (Slow Thursday) wrote:
> On 2016/07/14 05:40:12, Lei Zhang (Slow Thursday) wrote:
> >
>
https://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Windows%...
> > failed differently:
> 
> Ah, that was the first attempt. n/m.

Thanks for the help! Second attempt is ongoing. I'll submit a try job on win as
well.

Powered by Google App Engine
This is Rietveld 408576698