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

Issue 1641813002: Provide renderers with memory pressure signals. (Closed)

Created:
4 years, 11 months ago by chrisha
Modified:
4 years, 10 months ago
CC:
chromium-reviews, petrcermak
Base URL:
https://chromium.googlesource.com/chromium/src.git@contentapi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide renderers with memory pressure signals. This uses TabManager's renderer ranking and existing memory pressure IPC mechanisms to notify renderer processes (least important ones first) of memory pressure events. BUG=483964 Committed: https://crrev.com/8706e5a3fab86048ebbf579a8c5dbabe937aa746 Cr-Commit-Position: refs/heads/master@{#372487}

Patch Set 1 #

Patch Set 2 : Cleaned up. #

Total comments: 6

Patch Set 3 : Merged content CL (1640423002) #

Patch Set 4 : Rebased. #

Patch Set 5 : Address georges' comments, cleaned rebase. #

Patch Set 6 : Address nit. #

Total comments: 16

Patch Set 7 : Addressed creis' comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -553 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 4 8 chunks +85 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 9 chunks +175 lines, -32 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 5 chunks +248 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_stats.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_stats.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/protocol/memory_handler.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/memory/memory_message_filter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/memory/memory_message_filter.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
D content/browser/memory/memory_pressure_controller.h View 1 2 1 chunk +0 lines, -66 lines 0 comments Download
D content/browser/memory/memory_pressure_controller.cc View 1 2 1 chunk +0 lines, -134 lines 0 comments Download
D content/browser/memory/memory_pressure_controller_browsertest.cc View 1 2 1 chunk +0 lines, -274 lines 0 comments Download
A + content/browser/memory/memory_pressure_controller_impl.h View 1 2 3 4 5 6 3 chunks +33 lines, -11 lines 0 comments Download
A + content/browser/memory/memory_pressure_controller_impl.cc View 1 2 8 chunks +17 lines, -16 lines 0 comments Download
A + content/browser/memory/memory_pressure_controller_impl_browsertest.cc View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A content/public/browser/memory_pressure_controller.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A content/public/browser/memory_pressure_controller.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
chrisha
I've left behind some comments about refactoring work to do. We can talk more offline. ...
4 years, 11 months ago (2016-01-27 20:31:19 UTC) #2
Georges Khalil
Awesome! Minor comments only. And yes, refactoring is greatly needed. https://codereview.chromium.org/1641813002/diff/20001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/1641813002/diff/20001/chrome/browser/memory/tab_manager.cc#newcode770 ...
4 years, 10 months ago (2016-01-28 15:41:02 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641813002/40001
4 years, 10 months ago (2016-01-28 22:24:21 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/151339) ios_dbg_simulator_ninja on ...
4 years, 10 months ago (2016-01-28 22:28:25 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/1641813002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641813002/60001
4 years, 10 months ago (2016-01-28 22:42:43 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/85858) mac_chromium_compile_dbg_ng on ...
4 years, 10 months ago (2016-01-28 22:55:11 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641813002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641813002/80001
4 years, 10 months ago (2016-01-29 15:22:09 UTC) #15
chrisha
Merged https://codereview.chromium.org/1640423002/ with this CL. creis: PTAL at everything in content/ georgesak: Another look at ...
4 years, 10 months ago (2016-01-29 16:17:54 UTC) #16
Charlie Reis
Just a few comment nits on content/. Otherwise looks good! https://codereview.chromium.org/1641813002/diff/100001/content/browser/memory/memory_pressure_controller_impl.h File content/browser/memory/memory_pressure_controller_impl.h (right): https://codereview.chromium.org/1641813002/diff/100001/content/browser/memory/memory_pressure_controller_impl.h#newcode26 ...
4 years, 10 months ago (2016-01-29 19:46:56 UTC) #17
chrisha
Thanks creis@. Comments inline. Another look? https://codereview.chromium.org/1641813002/diff/100001/content/browser/memory/memory_pressure_controller_impl.h File content/browser/memory/memory_pressure_controller_impl.h (right): https://codereview.chromium.org/1641813002/diff/100001/content/browser/memory/memory_pressure_controller_impl.h#newcode26 content/browser/memory/memory_pressure_controller_impl.h:26: // messages to ...
4 years, 10 months ago (2016-01-29 21:12:13 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641813002/120001
4 years, 10 months ago (2016-01-29 21:15:13 UTC) #20
Charlie Reis
Thanks, content/ LGTM.
4 years, 10 months ago (2016-01-29 21:29:37 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-29 22:45:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641813002/120001
4 years, 10 months ago (2016-01-30 00:06:07 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-01-30 00:14:21 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2016-01-30 00:16:13 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8706e5a3fab86048ebbf579a8c5dbabe937aa746
Cr-Commit-Position: refs/heads/master@{#372487}

Powered by Google App Engine
This is Rietveld 408576698