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

Issue 2482783002: Add StateOn{Moderate,Critical}NotificationReceived metrics (Closed)

Created:
4 years, 1 month ago by bashi
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, gavinp+memory_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add StateOn{Moderate,Critical}NotificationReceived metrics Record the global state of memory coordinator when memory pressure notification is received. The purpose of this metrics is to make sure the memory coordinator changes its global state to THROTTLED or SUSPENDED before receiving memory pressure notifications. BUG=662772 Committed: https://crrev.com/051a90313eb6f6851bb463e415d73d8556d3366d Cr-Commit-Position: refs/heads/master@{#430517}

Patch Set 1 #

Patch Set 2 : histograms.xml #

Total comments: 8

Patch Set 3 : comments addressed #

Patch Set 4 : Wrap -> Make #

Total comments: 4

Patch Set 5 : comments addressed #

Patch Set 6 : Typo #

Patch Set 7 : Remove std::move() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -24 lines) Patch
M base/memory/memory_coordinator_client.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 4 chunks +30 lines, -23 lines 0 comments Download
M content/browser/memory/memory_coordinator.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (19 generated)
bashi
PTAL Here is a summary of this metrics: https://docs.google.com/document/d/1Mlx7q_8thkoQtg_C7-CNA_y0SxSK0yp_ja9Zs4HmcwU/edit#heading=h.23f2vdcji21y
4 years, 1 month ago (2016-11-07 03:06:35 UTC) #4
haraken
LGTM https://codereview.chromium.org/2482783002/diff/20001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2482783002/diff/20001/base/memory/memory_coordinator_client.h#newcode38 base/memory/memory_coordinator_client.h:38: SUSPENDED = 2, Maybe can we add MemoryStateMax ...
4 years, 1 month ago (2016-11-07 03:11:47 UTC) #5
bashi
https://codereview.chromium.org/2482783002/diff/20001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2482783002/diff/20001/base/memory/memory_coordinator_client.h#newcode38 base/memory/memory_coordinator_client.h:38: SUSPENDED = 2, On 2016/11/07 03:11:47, haraken wrote: > ...
4 years, 1 month ago (2016-11-07 03:18:24 UTC) #6
bashi
+isherman@ for tools/metrics +avi@ for content/browser +dcheng@ for base/memory
4 years, 1 month ago (2016-11-07 03:22:17 UTC) #8
Avi (use Gerrit)
May as well fix ownership while you're here. https://codereview.chromium.org/2482783002/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2482783002/diff/20001/content/browser/browser_main_loop.cc#newcode1406 content/browser/browser_main_loop.cc:1406: memory_pressure_monitor_.reset(new ...
4 years, 1 month ago (2016-11-07 04:32:02 UTC) #9
bashi
https://codereview.chromium.org/2482783002/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2482783002/diff/20001/content/browser/browser_main_loop.cc#newcode1406 content/browser/browser_main_loop.cc:1406: memory_pressure_monitor_.reset(new base::chromeos::MemoryPressureMonitor( On 2016/11/07 04:32:01, Avi wrote: > memory_pressure_monitor_ ...
4 years, 1 month ago (2016-11-07 05:53:39 UTC) #12
Avi (use Gerrit)
lgtm Thank you for the cleanup! 👍
4 years, 1 month ago (2016-11-07 16:19:18 UTC) #13
Ilya Sherman
Metrics LGTM % nits. Thanks! https://codereview.chromium.org/2482783002/diff/60001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2482783002/diff/60001/base/memory/memory_coordinator_client.h#newcode24 base/memory/memory_coordinator_client.h:24: // state can use ...
4 years, 1 month ago (2016-11-07 19:28:52 UTC) #14
dcheng
base lgtm
4 years, 1 month ago (2016-11-07 22:27:36 UTC) #15
bashi
Thank you all for reviews! https://codereview.chromium.org/2482783002/diff/60001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2482783002/diff/60001/base/memory/memory_coordinator_client.h#newcode24 base/memory/memory_coordinator_client.h:24: // state can use ...
4 years, 1 month ago (2016-11-08 00:33:35 UTC) #16
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/2482783002/80001
4 years, 1 month ago (2016-11-08 00:34:29 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/230738) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-08 00:52:53 UTC) #21
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/2482783002/100001
4 years, 1 month ago (2016-11-08 01:32:57 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/117550)
4 years, 1 month ago (2016-11-08 03:08:32 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/2482783002/120001
4 years, 1 month ago (2016-11-08 04:09:23 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-08 04:14:51 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 04:19:48 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/051a90313eb6f6851bb463e415d73d8556d3366d
Cr-Commit-Position: refs/heads/master@{#430517}

Powered by Google App Engine
This is Rietveld 408576698