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

Issue 2876693002: Emit UMAs for metrics from memory instrumentation service. (Closed)

Created:
3 years, 7 months ago by erikchen
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Emit UMAs for metrics from memory instrumentation service. ChromeMetricsServiceClient uses MetricsMemoryDetails to fetch and emit memory-related UMA metrics by manually computing the metrics. This CL adds a similar class ProcessMemoryMetricsEmitter to fetch and emit metrics from the memory instrumentation interface. For now, both classes exist and are used. In the future, the former will be removed. This CL separates out a memory_instrumentation capability, and then provides access to that capability from the previous services with access [content_renderer, content_gpu, etc.] as well as content_browser. This is needed to allow the content_browser service to access the memory instrumentation interface. BUG=703184 Review-Url: https://codereview.chromium.org/2876693002 Cr-Commit-Position: refs/heads/master@{#471435} Committed: https://chromium.googlesource.com/chromium/src/+/a6e5f6832a2b96892a2562b032aefcd6acf56f56

Patch Set 1 #

Patch Set 2 : asdf #

Patch Set 3 : review. #

Patch Set 4 : undo #

Total comments: 2

Patch Set 5 : Add test. #

Patch Set 6 : Clean up. #

Total comments: 6

Patch Set 7 : Comments from rkaplow. #

Total comments: 4

Patch Set 8 : comments from ssid. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -10 lines) Patch
M chrome/browser/BUILD.gn View 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/metrics/process_memory_metrics_emitter.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/metrics/process_memory_metrics_emitter.cc View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc View 1 2 3 4 5 1 chunk +52 lines, -0 lines 3 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M content/public/app/mojo/content_gpu_manifest.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/app/mojo/content_utility_manifest.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 6 chunks +51 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 55 (29 generated)
erikchen
primiano: Please review chrome/browser/DEPS and chrome/browser/BUILD.gn. rkaplow: Please review *metrics* rockot: Please review *mojo*
3 years, 7 months ago (2017-05-11 17:49:07 UTC) #6
Primiano Tucci (use gerrit)
had a general pass, LGTM https://codereview.chromium.org/2876693002/diff/60001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2876693002/diff/60001/chrome/browser/DEPS#newcode55 chrome/browser/DEPS:55: "+services/service_manager", Just checking: do ...
3 years, 7 months ago (2017-05-11 18:10:52 UTC) #7
Ken Rockot(use gerrit already)
*mojo* LGTM https://codereview.chromium.org/2876693002/diff/60001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2876693002/diff/60001/chrome/browser/DEPS#newcode55 chrome/browser/DEPS:55: "+services/service_manager", On 2017/05/11 at 18:10:52, Primiano Tucci ...
3 years, 7 months ago (2017-05-11 18:24:59 UTC) #8
rkaplow
https://codereview.chromium.org/2876693002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2876693002/diff/100001/tools/metrics/histograms/histograms.xml#newcode29532 tools/metrics/histograms/histograms.xml:29532: +<histogram base="true" name="Memory.Experimental.Browser2" units="MB"> why are these all "2" ...
3 years, 7 months ago (2017-05-11 21:21:40 UTC) #12
erikchen
rkaplow: PTAL https://codereview.chromium.org/2876693002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2876693002/diff/100001/tools/metrics/histograms/histograms.xml#newcode29532 tools/metrics/histograms/histograms.xml:29532: +<histogram base="true" name="Memory.Experimental.Browser2" units="MB"> On 2017/05/11 21:21:39, ...
3 years, 7 months ago (2017-05-11 21:32:36 UTC) #13
rkaplow1
lgtm
3 years, 7 months ago (2017-05-11 21:33:38 UTC) #15
ssid
https://codereview.chromium.org/2876693002/diff/120001/chrome/browser/metrics/process_memory_metrics_emitter.cc File chrome/browser/metrics/process_memory_metrics_emitter.cc (right): https://codereview.chromium.org/2876693002/diff/120001/chrome/browser/metrics/process_memory_metrics_emitter.cc#newcode19 chrome/browser/metrics/process_memory_metrics_emitter.cc:19: UMA_HISTOGRAM_MEMORY_LARGE_MB("Memory.Experimental.Browser2.Resident", Curious, why Browser2 and not just Browser ? ...
3 years, 7 months ago (2017-05-11 21:57:02 UTC) #19
ssid
Thanks for adding the test.
3 years, 7 months ago (2017-05-11 21:57:21 UTC) #20
rkaplow
lgtm
3 years, 7 months ago (2017-05-11 21:58:03 UTC) #21
erikchen
https://codereview.chromium.org/2876693002/diff/120001/chrome/browser/metrics/process_memory_metrics_emitter.cc File chrome/browser/metrics/process_memory_metrics_emitter.cc (right): https://codereview.chromium.org/2876693002/diff/120001/chrome/browser/metrics/process_memory_metrics_emitter.cc#newcode19 chrome/browser/metrics/process_memory_metrics_emitter.cc:19: UMA_HISTOGRAM_MEMORY_LARGE_MB("Memory.Experimental.Browser2.Resident", On 2017/05/11 21:57:02, ssid wrote: > Curious, why ...
3 years, 7 months ago (2017-05-11 22:01:38 UTC) #22
erikchen
thakis: Please stamp chrome/browser/DEPS. dcheng: SECURITY_OWNER review for content/public/app/mojo. Note that rockot@ has already reviewed, ...
3 years, 7 months ago (2017-05-11 22:03:11 UTC) #25
Nico
chrome/browser deps lgtm I'm surprised you found something that chrome/ didn't already depend on!
3 years, 7 months ago (2017-05-11 22:08:16 UTC) #27
dcheng
security lgtm https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc File chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc (right): https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc#newcode21 chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc:21: uint64_t dump_guid, FWIW, I still think the ...
3 years, 7 months ago (2017-05-11 22:12:27 UTC) #28
erikchen
https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc File chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc (right): https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc#newcode21 chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc:21: uint64_t dump_guid, On 2017/05/11 22:12:27, dcheng wrote: > FWIW, ...
3 years, 7 months ago (2017-05-11 22:18:47 UTC) #29
Nico
https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc File chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc (right): https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc#newcode21 chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc:21: uint64_t dump_guid, On 2017/05/11 22:18:47, erikchen wrote: > On ...
3 years, 7 months ago (2017-05-11 22:24:39 UTC) #30
dcheng
On 2017/05/11 22:24:39, Nico wrote: > https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc > File chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc > (right): > > https://codereview.chromium.org/2876693002/diff/140001/chrome/browser/metrics/process_memory_metrics_emitter_browsertest.cc#newcode21 ...
3 years, 7 months ago (2017-05-11 22:26:40 UTC) #31
erikchen
> > FWIW, an informal survey of people ("if you see a variable named GUID, ...
3 years, 7 months ago (2017-05-11 22:28:24 UTC) #32
Ken Rockot(use gerrit already)
I generally agree that "guid" seems like a misnomer given the size as it almost ...
3 years, 7 months ago (2017-05-11 22:28:58 UTC) #33
erikchen
Filed https://bugs.chromium.org/p/chromium/issues/detail?id=721558
3 years, 7 months ago (2017-05-11 22:33:23 UTC) #34
Primiano Tucci (use gerrit)
On 2017/05/11 22:33:23, erikchen wrote: > Filed https://bugs.chromium.org/p/chromium/issues/detail?id=721558 Maybe this is just a naming thing. ...
3 years, 7 months ago (2017-05-12 01:14:37 UTC) #37
ssid
On 2017/05/12 01:14:37, Primiano Tucci wrote: > On 2017/05/11 22:33:23, erikchen wrote: > > Filed ...
3 years, 7 months ago (2017-05-12 01:50:57 UTC) #38
commit-bot: I haz the power
This CL has an open dependency (Issue 2871223002 Patch 60001). Please resolve the dependency and ...
3 years, 7 months ago (2017-05-12 06:52:51 UTC) #42
Primiano Tucci (use gerrit)
On 2017/05/12 01:50:57, ssid wrote: > On 2017/05/12 01:14:37, Primiano Tucci wrote: > > On ...
3 years, 7 months ago (2017-05-12 06:53:33 UTC) #43
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/2876693002/140001
3 years, 7 months ago (2017-05-12 19:58:42 UTC) #47
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/2876693002/140001
3 years, 7 months ago (2017-05-12 20:31:32 UTC) #50
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 20:39:40 UTC) #53
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/a6e5f6832a2b96892a2562b032ae...

Powered by Google App Engine
This is Rietveld 408576698