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

Issue 2434103003: Add Mac memory pressure statistic reporting and consolidate platform code (Closed)

Created:
4 years, 2 months ago by lgrey
Modified:
4 years, 1 month ago
CC:
chromium-reviews, gavinp+memory_chromium.org, mac-reviews_chromium.org, Alexei Svitkine (slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Per offline discussion, leaving "ChromeOS.MemoryPressureLevel" code in place for ChromeOS while history builds up in "Memory.PressureLevel" BUG=655304 Committed: https://crrev.com/1c1ec069eb9f7b0ffc61e17e00d5ac2c5657cbc2 Cr-Commit-Position: refs/heads/master@{#430292}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rename NotifyMemoryPressureChanged to OnMemoryPressureChanged #

Patch Set 3 : Report in 5 second increments on all platforms #

Patch Set 4 : Disable reporting for Sierra #

Patch Set 5 : Add radar ID #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -51 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/memory/memory_pressure_monitor.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M base/memory/memory_pressure_monitor.cc View 1 2 2 chunks +40 lines, -0 lines 0 comments Download
M base/memory/memory_pressure_monitor_chromeos.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M base/memory/memory_pressure_monitor_chromeos.cc View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M base/memory/memory_pressure_monitor_mac.h View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M base/memory/memory_pressure_monitor_mac.cc View 1 2 3 4 3 chunks +39 lines, -16 lines 0 comments Download
A base/memory/memory_pressure_monitor_unittest.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M base/memory/memory_pressure_monitor_win.cc View 1 2 3 chunks +1 line, -31 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
shrike
https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc File base/memory/memory_pressure_monitor_mac.cc (right): https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc#newcode44 base/memory/memory_pressure_monitor_mac.cc:44: base::Bind(&MemoryPressureListener::NotifyMemoryPressure)), I think MemoryPressureListener::NotifyMemoryPressure() still needs to be static? ...
4 years, 2 months ago (2016-10-20 21:04:31 UTC) #3
lgrey
https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc File base/memory/memory_pressure_monitor_mac.cc (right): https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc#newcode44 base/memory/memory_pressure_monitor_mac.cc:44: base::Bind(&MemoryPressureListener::NotifyMemoryPressure)), On 2016/10/20 21:04:31, shrike wrote: > I think ...
4 years, 2 months ago (2016-10-21 14:15:04 UTC) #5
Alexei Svitkine (slow)
+georgesak +chrisha to review memory pressure stuff since they've worked in this space before on ...
4 years, 2 months ago (2016-10-21 14:53:36 UTC) #7
chrisha
This is largely fine by me. We already talked about this work in an email ...
4 years, 2 months ago (2016-10-21 18:18:58 UTC) #8
lgrey
https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc File base/memory/memory_pressure_monitor_mac.cc (right): https://codereview.chromium.org/2434103003/diff/1/base/memory/memory_pressure_monitor_mac.cc#newcode44 base/memory/memory_pressure_monitor_mac.cc:44: base::Bind(&MemoryPressureListener::NotifyMemoryPressure)), On 2016/10/21 18:18:58, chrisha (slow) wrote: > On ...
4 years, 2 months ago (2016-10-21 18:39:35 UTC) #9
shrike
On 2016/10/21 18:18:58, chrisha (slow) wrote: > Do we just want to move to a ...
4 years, 2 months ago (2016-10-21 20:44:20 UTC) #10
lgrey
PTAL All platforms now report in units of 5 seconds, and Mac reports cumulative ticks ...
4 years, 1 month ago (2016-11-03 19:49:14 UTC) #11
shrike
lgtm
4 years, 1 month ago (2016-11-03 21:15:22 UTC) #12
lgrey
Stefan, PTAL for ChromeOS
4 years, 1 month ago (2016-11-04 16:15:23 UTC) #14
Mr4D (OOO till 08-26)
lgtm. Thanks for doing that!
4 years, 1 month ago (2016-11-04 16:51:31 UTC) #16
lgrey
Mark PTAL for OWNERS
4 years, 1 month ago (2016-11-04 20:20:38 UTC) #22
Mark Mentovai
LGTM
4 years, 1 month ago (2016-11-04 21:53:01 UTC) #23
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/2434103003/80001
4 years, 1 month ago (2016-11-07 14:57:14 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-07 16:34:15 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 16:43:01 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1c1ec069eb9f7b0ffc61e17e00d5ac2c5657cbc2
Cr-Commit-Position: refs/heads/master@{#430292}

Powered by Google App Engine
This is Rietveld 408576698