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

Issue 2871223002: memory-infra: add ProcessType and expose data in RequestGlobalDump() (Closed)

Created:
3 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
3 years, 7 months ago
Reviewers:
erikchen, jam, fmeawad, dcheng, hjd
CC:
chromium-reviews, chrome-grc-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ssid
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

memory-infra: add ProcessType and expose data in RequestGlobalDump() This CL addresses two distinct problems: 1) Adds a ProcessType in the per-process struct returned by ProcessMemoryDump. This will be required in the next CLs for UMA / UKM aggregation. 2) Adds a GlobalMemoryDump return object to the RequestGlobalMemoryDump service API. This object will contain the data that UMA/UKM need to upload. As a bonus this CL removes the mojo type memory_instrumentation.mojom.MemoryDumpCallbackResult. That callback was never meant to be exposed across a service boundary. It is only used between base::MemoryDumpManager and the client library, which are by design both hosted in the same process. BUG=703184 Review-Url: https://codereview.chromium.org/2871223002 Cr-Commit-Position: refs/heads/master@{#471415} Committed: https://chromium.googlesource.com/chromium/src/+/5a7bd66da934d6decc3d60a8c0640a990fc0d0a8

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : add comments and propagate extra_processes_dump #

Total comments: 3

Patch Set 4 : fix data structures #

Total comments: 11

Patch Set 5 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -88 lines) Patch
M content/child/child_thread_impl.cc View 2 chunks +15 lines, -1 line 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl.h View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl.cc View 1 2 3 4 6 chunks +29 lines, -13 lines 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/memory_instrumentation.typemap View 1 chunk +0 lines, -1 line 0 comments Download
M services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h View 1 chunk +0 lines, -23 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.h View 2 chunks +19 lines, -4 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc View 1 2 3 chunks +48 lines, -10 lines 2 comments Download
M services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom View 1 2 3 4 2 chunks +44 lines, -11 lines 0 comments Download

Messages

Total messages: 45 (26 generated)
Primiano Tucci (use gerrit)
3 years, 7 months ago (2017-05-10 14:53:01 UTC) #8
fmeawad
https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom File services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom (right): https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom#newcode62 services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom:62: ProcessType process_type; Can we send it as we register ...
3 years, 7 months ago (2017-05-10 17:09:38 UTC) #13
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom File services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom (right): https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom#newcode62 services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom:62: ProcessType process_type; On 2017/05/10 17:09:38, fmeawad wrote: > Can ...
3 years, 7 months ago (2017-05-10 17:17:19 UTC) #14
hjd
lgtm
3 years, 7 months ago (2017-05-10 17:31:02 UTC) #15
hjd
lgtm
3 years, 7 months ago (2017-05-10 17:31:06 UTC) #16
Primiano Tucci (use gerrit)
+jam , in reference to the recent discussion on https://groups.google.com/a/chromium.org/d/msg/services-dev/v85DHRCtrl4/XaSJ9P8ZAgAJ
3 years, 7 months ago (2017-05-10 17:44:41 UTC) #20
fmeawad
lgtm https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom File services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom (right): https://codereview.chromium.org/2871223002/diff/40001/services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom#newcode62 services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom:62: ProcessType process_type; On 2017/05/10 17:17:19, Primiano Tucci wrote: ...
3 years, 7 months ago (2017-05-10 18:00:16 UTC) #22
jam
lgtm
3 years, 7 months ago (2017-05-10 22:15:07 UTC) #23
erikchen
On 2017/05/10 22:15:07, jam wrote: > lgtm I'm going to hit the CQ button [already ...
3 years, 7 months ago (2017-05-10 22:21:56 UTC) #24
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/2871223002/60001
3 years, 7 months ago (2017-05-10 22:23:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/433214)
3 years, 7 months ago (2017-05-10 22:39:56 UTC) #28
erikchen
dcheng: Please review as SECURITY_OWNER
3 years, 7 months ago (2017-05-10 22:47:25 UTC) #30
dcheng
Do you mind having a quick VC tomorrow to help me understand the overall design ...
3 years, 7 months ago (2017-05-11 05:55:26 UTC) #31
Primiano Tucci (use gerrit)
> Do you mind having a quick VC tomorrow to help me understand the overall ...
3 years, 7 months ago (2017-05-11 12:50:03 UTC) #34
dcheng
https://codereview.chromium.org/2871223002/diff/80001/services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc File services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc (right): https://codereview.chromium.org/2871223002/diff/80001/services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc#newcode74 services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc:74: process_memory_dump->os_dump = result->os_dump; Is there a reason to switch ...
3 years, 7 months ago (2017-05-12 08:07:42 UTC) #37
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2871223002/diff/80001/services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc File services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc (right): https://codereview.chromium.org/2871223002/diff/80001/services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc#newcode74 services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc:74: process_memory_dump->os_dump = result->os_dump; On 2017/05/12 08:07:41, dcheng wrote: > ...
3 years, 7 months ago (2017-05-12 11:42:46 UTC) #38
dcheng
discussed offline. lgtm
3 years, 7 months ago (2017-05-12 17:10:20 UTC) #39
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/2871223002/80001
3 years, 7 months ago (2017-05-12 17:18:34 UTC) #42
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 19:46:22 UTC) #45
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/5a7bd66da934d6decc3d60a8c064...

Powered by Google App Engine
This is Rietveld 408576698