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

Issue 1048983006: Introduce base::MemoryPressureMonitor (Closed)

Created:
5 years, 8 months ago by dmichael (off chromium)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce base::MemoryPressureMonitor This is a step towards unifying the various ways to "notify" MemoryPressureListeners. This also provides "GetCurrentPressureLevel" to a more general-purpose place so we'll be able to use it on other platforms. (Especially Windows, so we can use it in renderer_frame_manager). See: https://docs.google.com/a/chromium.org/document/d/1z3SR3JfKOwVaZxrsfHLOrPjo4-IVtnijaX86LKYPEQs/edit# for more on the rationale and design, and https://codereview.chromium.org/1045433002/ for what this might look like for ChromeOS's memory monitor. BUG=463546 Committed: https://crrev.com/87f6aa1c21c81727a9d6e9813b66dbc58eb2ecc0 Cr-Commit-Position: refs/heads/master@{#324086}

Patch Set 1 #

Patch Set 2 : Move to base #

Total comments: 2

Patch Set 3 : review comments (CHECK->DCHECK) #

Patch Set 4 : review comments (CHECK->DCHECK) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -0 lines) Patch
M base/base.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/memory/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A base/memory/memory_pressure_monitor.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A base/memory/memory_pressure_monitor.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
dmichael (off chromium)
split from https://codereview.chromium.org/1045433002/
5 years, 8 months ago (2015-03-31 21:12:25 UTC) #2
dmichael (off chromium)
jam and brettw, how do you feel about having a GetCurrentPressureLevel available in base/? It ...
5 years, 8 months ago (2015-04-03 23:04:09 UTC) #4
jam
On 2015/04/03 23:04:09, dmichael wrote: > jam and brettw, how do you feel about having ...
5 years, 8 months ago (2015-04-03 23:11:31 UTC) #5
dmichael (off chromium)
Thanks, jam@. I added you because brettw indicated you might have strong opinions around what ...
5 years, 8 months ago (2015-04-06 16:40:07 UTC) #7
danakj
+avi
5 years, 8 months ago (2015-04-06 16:47:21 UTC) #9
Avi (use Gerrit)
On 2015/04/06 16:47:21, danakj wrote: > +avi What do you want my opinion on? This ...
5 years, 8 months ago (2015-04-06 17:44:05 UTC) #10
danakj
On 2015/04/06 17:44:05, Avi (OOO Friday 3 Apr) wrote: > On 2015/04/06 16:47:21, danakj wrote: ...
5 years, 8 months ago (2015-04-06 17:48:35 UTC) #11
Avi (use Gerrit)
On 2015/04/06 17:48:35, danakj wrote: > On 2015/04/06 17:44:05, Avi (OOO Friday 3 Apr) wrote: ...
5 years, 8 months ago (2015-04-06 18:52:43 UTC) #12
danakj
This seems fine to me. Did you want to land this as an atomic piece ...
5 years, 8 months ago (2015-04-07 00:13:24 UTC) #13
cpu_(ooo_6.6-7.5)
ping me if this CL gets meat, specially on windows.
5 years, 8 months ago (2015-04-07 00:47:11 UTC) #14
dmichael (off chromium)
danakj: Thanks, review comments addressed. chrisha asked me to split the earlier version up (https://codereview.chromium.org/1045433002/), ...
5 years, 8 months ago (2015-04-07 16:15:57 UTC) #15
danakj
OK LGTM. Btw, can you try wrap your patch description at 72 chars?
5 years, 8 months ago (2015-04-07 18:06:35 UTC) #16
dmichael (off chromium)
On 2015/04/07 18:06:35, danakj wrote: > OK LGTM. Btw, can you try wrap your patch ...
5 years, 8 months ago (2015-04-07 18:20:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1048983006/60001
5 years, 8 months ago (2015-04-07 18:21:11 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-07 19:13:22 UTC) #20
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/87f6aa1c21c81727a9d6e9813b66dbc58eb2ecc0 Cr-Commit-Position: refs/heads/master@{#324086}
5 years, 8 months ago (2015-04-07 19:14:41 UTC) #21
Mr4D (OOO till 08-26)
5 years, 8 months ago (2015-04-13 18:04:18 UTC) #22
Message was sent while issue was closed.
Sorry - was OOO - lgtm!

Powered by Google App Engine
This is Rietveld 408576698