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

Issue 2150783003: Add memory pressure dispatching callback to MemoryCoordinator (Closed)

Created:
4 years, 5 months ago by bashi
Modified:
4 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mc-3-client
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add memory pressure dispatching callback to MemoryCoordinator The callback will be used to route memory pressure notifications to MemoryCoordinator instead of MemoryPressureListener. When MemoryCoordinator receives memory pressure notifications, it translates them to memory state events. Specifically, "moderate" -> "throttled" and "critical" -> "suspended". This translation is a tentative workaround. When the priority tracker is implemented we will replace the logic. BUG=617492 Committed: https://crrev.com/b5cd9faee318026d791e608c563c7625b5a20bc4 Cr-Commit-Position: refs/heads/master@{#407443}

Patch Set 1 #

Total comments: 2

Patch Set 2 : gyp #

Patch Set 3 : rebase #

Patch Set 4 : Attempt to fix "missing content_shell.pak" error #

Patch Set 5 : Fix tests #

Total comments: 2

Patch Set 6 : Don't expose callback #

Total comments: 2

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -5 lines) Patch
M components/BUILD.gn View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/memory_coordinator/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M components/memory_coordinator/browser/memory_coordinator.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M components/memory_coordinator/browser/memory_coordinator.cc View 1 2 3 4 5 3 chunks +33 lines, -2 lines 0 comments Download
A components/memory_coordinator/browser/memory_coordinator_unittest.cc View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
M components/memory_coordinator/public/interfaces/child_memory_coordinator.mojom View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 56 (34 generated)
bashi
PTAL after [1]? This depends on two CLs[1,2] so it might be too early to ...
4 years, 5 months ago (2016-07-14 08:37:43 UTC) #1
bashi
(forgot to add reviewers...)
4 years, 5 months ago (2016-07-14 08:38:18 UTC) #3
chrisha
lgtm!
4 years, 5 months ago (2016-07-14 20:42:14 UTC) #4
haraken
https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc File components/memory_coordinator/browser/memory_coordinator.cc (right): https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc#newcode70 components/memory_coordinator/browser/memory_coordinator.cc:70: mojom::MemoryState::SUSPENDED); Hmm, I'm not sure if this translation makes ...
4 years, 5 months ago (2016-07-15 02:35:50 UTC) #5
bashi
https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc File components/memory_coordinator/browser/memory_coordinator.cc (right): https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc#newcode70 components/memory_coordinator/browser/memory_coordinator.cc:70: mojom::MemoryState::SUSPENDED); On 2016/07/15 02:35:50, haraken wrote: > > Hmm, ...
4 years, 5 months ago (2016-07-15 02:45:29 UTC) #6
bashi
On 2016/07/15 02:45:29, bashi1 wrote: > https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc > File components/memory_coordinator/browser/memory_coordinator.cc (right): > > https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc#newcode70 > ...
4 years, 5 months ago (2016-07-15 02:53:48 UTC) #7
haraken
On 2016/07/15 02:53:48, bashi1 wrote: > On 2016/07/15 02:45:29, bashi1 wrote: > > > https://codereview.chromium.org/2150783003/diff/1/components/memory_coordinator/browser/memory_coordinator.cc ...
4 years, 5 months ago (2016-07-15 04:32:12 UTC) #8
bashi
On 2016/07/15 04:32:12, haraken wrote: > On 2016/07/15 02:53:48, bashi1 wrote: > > On 2016/07/15 ...
4 years, 5 months ago (2016-07-15 05:05:41 UTC) #9
haraken
On 2016/07/15 05:05:41, bashi1 wrote: > On 2016/07/15 04:32:12, haraken wrote: > > On 2016/07/15 ...
4 years, 5 months ago (2016-07-15 05:19:32 UTC) #10
bashi
On 2016/07/15 05:19:32, haraken wrote: > On 2016/07/15 05:05:41, bashi1 wrote: > > On 2016/07/15 ...
4 years, 5 months ago (2016-07-15 05:34:43 UTC) #11
bashi
caitkp@, could you review components/BUILD.gn? dcheng@, could you review *.mojom?
4 years, 5 months ago (2016-07-22 01:50:20 UTC) #35
dcheng
https://codereview.chromium.org/2150783003/diff/80001/components/memory_coordinator/browser/memory_coordinator.cc File components/memory_coordinator/browser/memory_coordinator.cc (right): https://codereview.chromium.org/2150783003/diff/80001/components/memory_coordinator/browser/memory_coordinator.cc#newcode37 components/memory_coordinator/browser/memory_coordinator.cc:37: base::Unretained(this))) {} Can you explain why this is safe? ...
4 years, 5 months ago (2016-07-22 04:49:03 UTC) #38
bashi
Thanks for review! https://codereview.chromium.org/2150783003/diff/80001/components/memory_coordinator/browser/memory_coordinator.cc File components/memory_coordinator/browser/memory_coordinator.cc (right): https://codereview.chromium.org/2150783003/diff/80001/components/memory_coordinator/browser/memory_coordinator.cc#newcode37 components/memory_coordinator/browser/memory_coordinator.cc:37: base::Unretained(this))) {} On 2016/07/22 04:49:03, dcheng ...
4 years, 5 months ago (2016-07-22 04:59:44 UTC) #39
dcheng
On 2016/07/22 04:59:44, bashi1 wrote: > Thanks for review! > > https://codereview.chromium.org/2150783003/diff/80001/components/memory_coordinator/browser/memory_coordinator.cc > File components/memory_coordinator/browser/memory_coordinator.cc ...
4 years, 5 months ago (2016-07-22 05:02:15 UTC) #40
bashi
On 2016/07/22 05:02:15, dcheng wrote: > On 2016/07/22 04:59:44, bashi1 wrote: > > Thanks for ...
4 years, 5 months ago (2016-07-22 05:52:18 UTC) #43
dcheng
The mojom changes LGTM, but the //base interface seems a little weird. We can iterate ...
4 years, 5 months ago (2016-07-22 06:04:34 UTC) #44
bashi
https://codereview.chromium.org/2150783003/diff/100001/components/memory_coordinator/browser/memory_coordinator.cc File components/memory_coordinator/browser/memory_coordinator.cc (right): https://codereview.chromium.org/2150783003/diff/100001/components/memory_coordinator/browser/memory_coordinator.cc#newcode50 components/memory_coordinator/browser/memory_coordinator.cc:50: base::Bind(&base::MemoryPressureListener::NotifyMemoryPressure)); On 2016/07/22 06:04:34, dcheng wrote: > What does ...
4 years, 5 months ago (2016-07-22 07:10:12 UTC) #47
bashi
-caitkp@, +blundell@ as caitkp seems busy. blundell@, could you review components/BUILD.gn ?
4 years, 5 months ago (2016-07-25 00:30:13 UTC) #49
blundell
lgtm
4 years, 5 months ago (2016-07-25 05:31:38 UTC) #50
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/2150783003/120001
4 years, 5 months ago (2016-07-25 09:18:19 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-25 10:22:25 UTC) #54
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 10:24:59 UTC) #56
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b5cd9faee318026d791e608c563c7625b5a20bc4
Cr-Commit-Position: refs/heads/master@{#407443}

Powered by Google App Engine
This is Rietveld 408576698