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

Issue 2476223002: Add metrics for memory coordinator global state change (Closed)

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

Description

Add metrics for memory coordinator global state change Record some metrics when the memory coordinator changes its global state. Added metrics are: - Total private working set memory of the browser/renderers - Elapsed time between state changes Design doc: https://docs.google.com/document/d/1Mlx7q_8thkoQtg_C7-CNA_y0SxSK0yp_ja9Zs4HmcwU/edit?usp=sharing BUG=662772 Committed: https://crrev.com/3e7b2c2e9ad184a7e541f3eb1a30b9db34408f7a Cr-Commit-Position: refs/heads/master@{#431709}

Patch Set 1 #

Patch Set 2 : more metrics #

Total comments: 3

Patch Set 3 : Update histograms.xml #

Patch Set 4 : Dont count private memory on mac #

Total comments: 4

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -0 lines) Patch
M content/browser/memory/memory_coordinator_impl.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 2 3 4 5 chunks +87 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
bashi
PTAL What do you think about adding these metrics? If this looks OK, I'll update ...
4 years, 1 month ago (2016-11-07 10:26:57 UTC) #4
bashi
https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc#newcode287 content/browser/memory/memory_coordinator_impl.cc:287: size_t total_private_kb = 0; I don't count shared memory ...
4 years, 1 month ago (2016-11-07 10:32:13 UTC) #5
haraken
Looks good. https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc#newcode287 content/browser/memory/memory_coordinator_impl.cc:287: size_t total_private_kb = 0; On 2016/11/07 10:32:13, ...
4 years, 1 month ago (2016-11-07 10:36:00 UTC) #6
bashi
https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2476223002/diff/20001/content/browser/memory/memory_coordinator_impl.cc#newcode287 content/browser/memory/memory_coordinator_impl.cc:287: size_t total_private_kb = 0; On 2016/11/07 10:36:00, haraken wrote: ...
4 years, 1 month ago (2016-11-07 10:41:22 UTC) #7
bashi
Updated histograms.xml and I think this CL is ready to review. PTAL?
4 years, 1 month ago (2016-11-08 01:41:34 UTC) #11
haraken
LGTM
4 years, 1 month ago (2016-11-08 02:50:27 UTC) #14
bashi
isherman@: could you review histograms.xml? According to https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md, an enum is a typical workaround for ...
4 years, 1 month ago (2016-11-08 03:14:50 UTC) #16
bashi
isherman@: Friendly ping. (Please let me know if this approach isn't good and there is ...
4 years, 1 month ago (2016-11-10 01:21:37 UTC) #17
Ilya Sherman
https://codereview.chromium.org/2476223002/diff/50001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2476223002/diff/50001/content/browser/memory/memory_coordinator_impl.cc#newcode66 content/browser/memory/memory_coordinator_impl.cc:66: UMA_HISTOGRAM_COUNTS_1000("Memory.Coordinator." group ".Count", 1) You're currently always recording to ...
4 years, 1 month ago (2016-11-11 00:00:38 UTC) #18
Ilya Sherman
And, sorry for the code review delay!
4 years, 1 month ago (2016-11-11 00:00:54 UTC) #19
bashi
Thank you for review! https://codereview.chromium.org/2476223002/diff/50001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2476223002/diff/50001/content/browser/memory/memory_coordinator_impl.cc#newcode66 content/browser/memory/memory_coordinator_impl.cc:66: UMA_HISTOGRAM_COUNTS_1000("Memory.Coordinator." group ".Count", 1) On ...
4 years, 1 month ago (2016-11-11 01:39:34 UTC) #20
Ilya Sherman
metrics lgtm, thanks
4 years, 1 month ago (2016-11-11 21:38:19 UTC) #22
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/2476223002/70001
4 years, 1 month ago (2016-11-11 23:40:32 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 1 month ago (2016-11-12 00:34:54 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:39:22 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3e7b2c2e9ad184a7e541f3eb1a30b9db34408f7a
Cr-Commit-Position: refs/heads/master@{#431709}

Powered by Google App Engine
This is Rietveld 408576698