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

Issue 2388933003: Make ResourceReporter a client of memory coordinator (Closed)

Created:
4 years, 2 months ago by hajimehoshi
Modified:
4 years, 1 month ago
Reviewers:
afakhry, haraken, chrisha, bashi
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ResourceReporter a client of memory coordinator When the memory coordinator is enabled, ResourceReporter becomes a client of the memory coordinator instead of installing MemoryPressureListener. In the implmentation of this CL, both MemoryPressureListener and MemoryCoordinatorClient are installed regardless of the flag, but as default MemoryCoordinator is not enabled and when MemoryCoordinator is enabled by a flag, it is planed to suppress MemoryPressureMonitor features. Design Doc: https://docs.google.com/document/d/1a69mMr7jI7qK0OfKNlrZ350xiXizVMCCe8orGX7K8Uo/edit?ts=57d7968b# BUG=639700 Committed: https://crrev.com/71fa1218175050b39812872fc707f97250860b5e Cr-Commit-Position: refs/heads/master@{#428664}

Patch Set 1 #

Total comments: 2

Patch Set 2 : (rebasing) #

Total comments: 13

Patch Set 3 : Address on reviews #

Total comments: 4

Patch Set 4 : Address on afakhry's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -30 lines) Patch
M chrome/browser/chromeos/resource_reporter/resource_reporter.h View 1 2 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/resource_reporter/resource_reporter.cc View 1 2 3 5 chunks +55 lines, -29 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (17 generated)
hajimehoshi
PTAL
4 years, 2 months ago (2016-10-04 08:15:45 UTC) #4
bashi
https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode376 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:376: RecordCurrentState(); If I remember the thread we've discussed this ...
4 years, 2 months ago (2016-10-04 10:12:20 UTC) #7
hajimehoshi
On 2016/10/04 10:12:20, bashi1 wrote: > https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc > File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): > > https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode376 > ...
4 years, 2 months ago (2016-10-11 07:17:51 UTC) #8
hajimehoshi
https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/1/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode376 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:376: RecordCurrentState(); On 2016/10/04 10:12:20, bashi1 wrote: > If I ...
4 years, 2 months ago (2016-10-18 10:13:45 UTC) #9
afakhry
https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (left): https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#oldcode121 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:121: base::Bind(&ResourceReporter::OnMemoryPressure, base::Unretained(this)))); Now, I'm a bit confused! I thought ...
4 years, 2 months ago (2016-10-18 16:20:20 UTC) #14
haraken
https://chromiumcodereview.appspot.com/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://chromiumcodereview.appspot.com/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode438 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:438: // |state|. ResourceReporter doesn't have a feature to limit ...
4 years, 2 months ago (2016-10-18 18:52:20 UTC) #16
hajimehoshi
Thank you! https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (left): https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#oldcode121 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:121: base::Bind(&ResourceReporter::OnMemoryPressure, base::Unretained(this)))); On 2016/10/18 16:20:20, afakhry wrote: ...
4 years, 1 month ago (2016-10-25 07:39:42 UTC) #17
hajimehoshi
https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode438 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:438: // |state|. ResourceReporter doesn't have a feature to limit ...
4 years, 1 month ago (2016-10-26 07:42:36 UTC) #18
haraken
LGTM
4 years, 1 month ago (2016-10-26 07:46:21 UTC) #21
chrisha
lgtm https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/20001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode438 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:438: // |state|. ResourceReporter doesn't have a feature to ...
4 years, 1 month ago (2016-10-26 21:32:43 UTC) #24
afakhry
lgtm with 2 nits. https://codereview.chromium.org/2388933003/diff/40001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/40001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode137 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:137: observed_task_manager()->RemoveObserver(this); Nit: Since we now ...
4 years, 1 month ago (2016-10-27 16:16:20 UTC) #25
hajimehoshi
Thank you! https://codereview.chromium.org/2388933003/diff/40001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc File chrome/browser/chromeos/resource_reporter/resource_reporter.cc (right): https://codereview.chromium.org/2388933003/diff/40001/chrome/browser/chromeos/resource_reporter/resource_reporter.cc#newcode137 chrome/browser/chromeos/resource_reporter/resource_reporter.cc:137: observed_task_manager()->RemoveObserver(this); On 2016/10/27 16:16:20, afakhry wrote: > ...
4 years, 1 month ago (2016-10-31 06:50:51 UTC) #26
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/2388933003/60001
4 years, 1 month ago (2016-10-31 06:53:07 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-31 07:24:45 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 07:25:58 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/71fa1218175050b39812872fc707f97250860b5e
Cr-Commit-Position: refs/heads/master@{#428664}

Powered by Google App Engine
This is Rietveld 408576698