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

Issue 1362233003: Add architecture for simulating memory pressure notifications in all processes (Closed)

Created:
5 years, 2 months ago by petrcermak
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, gavinp+memory_chromium.org, rmcilroy, chrisha
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add architecture for simulating memory pressure notifications in all processes This patch augments the architecture for cross-process memory notification suppressing (https://codereview.chromium.org/1361963002/) with methods and IPC messages for simulating notifications. The required architecture for simulating memory pressure notifications within a single process was added in https://codereview.chromium.org/1370713002/. This patch is a part of the plan to implement a DevTools API for suppressing and simulating memory pressure signals in Chrome. The main use case for this feature is to enforce consistent conditions across memory measurements. See https://goo.gl/cZFdH3 for more details. BUG=516776 Committed: https://crrev.com/bdfa9fad1377fac771a6e2ddf169adae989799be Cr-Commit-Position: refs/heads/master@{#351623}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Address Primiano's comments #

Total comments: 8

Patch Set 3 : Address nasko's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -8 lines) Patch
M content/browser/memory/memory_message_filter.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/memory/memory_message_filter.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/memory/memory_pressure_controller.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/memory/memory_pressure_controller.cc View 1 2 3 chunks +27 lines, -5 lines 0 comments Download
M content/browser/memory/memory_pressure_controller_browsertest.cc View 1 2 4 chunks +74 lines, -0 lines 0 comments Download
M content/child/memory/child_memory_message_filter.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/child/memory/child_memory_message_filter.cc View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M content/common/memory_messages.h View 1 2 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
petrcermak
Hi, Please this patch. Thanks, Petr
5 years, 2 months ago (2015-09-25 15:22:50 UTC) #4
petrcermak
+cc rmcilroy
5 years, 2 months ago (2015-09-25 15:24:37 UTC) #5
petrcermak
+cc chrisha
5 years, 2 months ago (2015-09-25 16:31:18 UTC) #6
chrisha
Approach lgtm (I don't know enough about IPC implementation to comment on it specifically.) Maybe ...
5 years, 2 months ago (2015-09-25 17:04:51 UTC) #8
Primiano Tucci (use gerrit)
Thanks! Just some comments. Other than those LGTM (remember to add owners for _messages and ...
5 years, 2 months ago (2015-09-28 12:47:32 UTC) #9
petrcermak
Thanks for your comments. Petr https://codereview.chromium.org/1362233003/diff/40001/content/browser/memory/memory_message_filter.h File content/browser/memory/memory_message_filter.h (right): https://codereview.chromium.org/1362233003/diff/40001/content/browser/memory/memory_message_filter.h#newcode15 content/browser/memory/memory_message_filter.h:15: On 2015/09/28 12:47:31, Primiano ...
5 years, 2 months ago (2015-09-28 15:39:33 UTC) #10
nasko
LGTM with a few nits. https://codereview.chromium.org/1362233003/diff/60001/content/browser/memory/memory_pressure_controller.cc File content/browser/memory/memory_pressure_controller.cc (right): https://codereview.chromium.org/1362233003/diff/60001/content/browser/memory/memory_pressure_controller.cc#newcode66 content/browser/memory/memory_pressure_controller.cc:66: for (const scoped_refptr<MemoryMessageFilter>& mf ...
5 years, 2 months ago (2015-09-30 16:44:58 UTC) #11
petrcermak
Thanks for your comments. Petr https://codereview.chromium.org/1362233003/diff/60001/content/browser/memory/memory_pressure_controller.cc File content/browser/memory/memory_pressure_controller.cc (right): https://codereview.chromium.org/1362233003/diff/60001/content/browser/memory/memory_pressure_controller.cc#newcode66 content/browser/memory/memory_pressure_controller.cc:66: for (const scoped_refptr<MemoryMessageFilter>& mf ...
5 years, 2 months ago (2015-09-30 18:18:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1362233003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1362233003/80001
5 years, 2 months ago (2015-09-30 18:22:42 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 2 months ago (2015-09-30 20:05:34 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 20:06:19 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bdfa9fad1377fac771a6e2ddf169adae989799be
Cr-Commit-Position: refs/heads/master@{#351623}

Powered by Google App Engine
This is Rietveld 408576698