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

Issue 2360433002: Memory-monitor for Mac. (Closed)

Created:
4 years, 3 months ago by bcwhite
Modified:
3 years, 10 months ago
Reviewers:
chrisha, shrike
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1

Patch Set 2 : calculate adjustment based on poll interval; limit calculations to avoid overflow #

Total comments: 13

Patch Set 3 : rebased #

Patch Set 4 : fixed typo #

Patch Set 5 : rebased #

Total comments: 6

Patch Set 6 : addressed review comments #

Patch Set 7 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -9 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.h View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/memory/memory_monitor.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/memory/memory_monitor.cc View 1 1 chunk +2 lines, -6 lines 0 comments Download
A content/browser/memory/memory_monitor_mac.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/memory/memory_monitor_mac.cc View 1 1 chunk +106 lines, -0 lines 0 comments Download
A content/browser/memory/memory_monitor_mac_unittest.cc View 1 1 chunk +102 lines, -0 lines 0 comments Download
M content/browser/memory/test_memory_monitor.h View 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/memory/test_memory_monitor.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 53 (26 generated)
bcwhite
Not sure if I really like this algorithm or not. Let me know what you ...
4 years, 3 months ago (2016-09-21 01:17:53 UTC) #2
chrisha
Maybe shrike can comment on this, as he played a lot with the memory pressure ...
4 years, 2 months ago (2016-09-26 17:48:11 UTC) #4
bcwhite
On 2016/09/26 17:48:11, chrisha (slow) wrote: > Maybe shrike can comment on this, as he ...
4 years, 2 months ago (2016-09-29 19:21:04 UTC) #5
shrike
On 2016/09/29 19:21:04, bcwhite wrote: > Shrike, any comments? > > I'm told that this ...
4 years, 2 months ago (2016-09-29 22:48:34 UTC) #6
shrike
https://codereview.chromium.org/2360433002/diff/1/content/browser/memory/memory_monitor_mac.cc File content/browser/memory/memory_monitor_mac.cc (right): https://codereview.chromium.org/2360433002/diff/1/content/browser/memory/memory_monitor_mac.cc#newcode48 content/browser/memory/memory_monitor_mac.cc:48: // of memory that con be used. "con" should ...
4 years, 2 months ago (2016-09-29 22:48:43 UTC) #7
chrisha
shrike: For context, this is to be used in the memory coordinator, which is a ...
4 years, 2 months ago (2016-09-30 03:00:20 UTC) #8
shrike
On 2016/09/30 03:00:20, chrisha (slow) wrote: > shrike: For context, this is to be used ...
4 years, 2 months ago (2016-09-30 05:05:00 UTC) #9
bcwhite
> With polling and the WARNING memory pressure state it seems like > critical_free_mb_ can ...
4 years, 2 months ago (2016-09-30 13:51:03 UTC) #10
shrike
On 2016/09/30 13:51:03, bcwhite wrote: > Good point. How about a linear increase in the ...
4 years, 2 months ago (2016-10-01 00:19:44 UTC) #11
chrisha
Ping?
4 years, 2 months ago (2016-10-10 23:45:02 UTC) #12
bcwhite
On 2016/10/10 23:45:02, chrisha (slow) wrote: > Ping? I'm waiting for the main CL to ...
4 years, 2 months ago (2016-10-11 15:43:05 UTC) #13
chrisha
Ah, okay. Thanks for the reminder (you had told me that, but it slipped my ...
4 years, 2 months ago (2016-10-11 23:17:42 UTC) #14
bcwhite
> With polling and the WARNING memory pressure state it seems like > critical_free_mb_ can ...
4 years, 1 month ago (2016-11-01 12:59:27 UTC) #15
bcwhite
On 2016/11/01 12:59:27, bcwhite wrote: > > With polling and the WARNING memory pressure state ...
4 years, 1 month ago (2016-11-02 14:59:17 UTC) #20
bcwhite
Ping?
4 years, 1 month ago (2016-11-07 16:22:53 UTC) #21
chrisha
I'd prefer shrike@ comment on the logic here, if he has any more insight into ...
4 years, 1 month ago (2016-11-09 21:21:11 UTC) #22
bcwhite
https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h File content/browser/memory/memory_monitor.h (right): https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h#newcode56 content/browser/memory/memory_monitor.h:56: virtual bool GetSystemMemoryPressure(int* mem_pressure); On 2016/11/09 21:21:11, chrisha (slow) ...
4 years, 1 month ago (2016-11-09 22:46:55 UTC) #25
chrisha
https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h File content/browser/memory/memory_monitor.h (right): https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h#newcode55 content/browser/memory/memory_monitor.h:55: // or false otherwise. Expand the comment that this ...
4 years, 1 month ago (2016-11-14 18:14:31 UTC) #34
shrike
https://codereview.chromium.org/2360433002/diff/100001/content/browser/memory/memory_monitor_mac.cc File content/browser/memory/memory_monitor_mac.cc (right): https://codereview.chromium.org/2360433002/diff/100001/content/browser/memory/memory_monitor_mac.cc#newcode58 content/browser/memory/memory_monitor_mac.cc:58: std::max(0LL, critical_free_mb_ - poll_interval_adjustment_mb_); This seems to have to ...
4 years, 1 month ago (2016-11-14 22:12:29 UTC) #35
bcwhite
https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h File content/browser/memory/memory_monitor.h (right): https://codereview.chromium.org/2360433002/diff/20001/content/browser/memory/memory_monitor.h#newcode55 content/browser/memory/memory_monitor.h:55: // or false otherwise. On 2016/11/14 18:14:31, chrisha (slow) ...
4 years, 1 month ago (2016-11-15 23:15:09 UTC) #40
shrike
On 2016/11/15 23:15:09, bcwhite wrote: > On 2016/11/14 22:12:29, shrike wrote: > > This seems ...
4 years, 1 month ago (2016-11-15 23:35:16 UTC) #41
bcwhite
> > Not quite because the maximum value of critical_free_mb_ is now the amount of ...
4 years, 1 month ago (2016-11-15 23:53:00 UTC) #42
shrike
On 2016/11/15 23:53:00, bcwhite wrote: > No, it's not balanced but previously it grew without ...
4 years, 1 month ago (2016-11-16 00:01:41 UTC) #43
bcwhite
On 2016/11/16 00:01:41, shrike wrote: > On 2016/11/15 23:53:00, bcwhite wrote: > > No, it's ...
4 years, 1 month ago (2016-11-16 01:30:06 UTC) #44
shrike
On 2016/11/16 01:30:06, bcwhite wrote: > On 2016/11/16 00:01:41, shrike wrote: > > On 2016/11/15 ...
4 years, 1 month ago (2016-11-16 18:48:28 UTC) #45
bcwhite
On 2016/11/16 18:48:28, shrike wrote: > On 2016/11/16 01:30:06, bcwhite wrote: > > On 2016/11/16 ...
4 years ago (2016-11-29 18:56:03 UTC) #52
bcwhite
3 years, 10 months ago (2017-02-24 20:31:25 UTC) #53
Closing this since it seems a new way of doing things is being created.

Powered by Google App Engine
This is Rietveld 408576698