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

Issue 2741203002: memory-infra: Finish moving to Mojo (3nd attempt) (Closed)

Created:
3 years, 9 months ago by chiniforooshan
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, chrome-grc-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, msw, piman+watch_chromium.org, qsr+mojo_chromium.org, ssid, tracing+reviews_chromium.org, viettrungluu+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

memory-infra: Finish moving to Mojo (3nd attempt) This was originally landed in https://codereview.chromium.org/2734193002 and, before that, in https://codereview.chromium.org/2694083005. But it broke chrome when component build is on. The issue was that //services/resource_coordinator:lib is a static library with static local variables. This CL fixes it. Tested on a component build. An example interaction diagram (to see the large image, click on it): https://docs.google.com/document/d/1Mz64egjuZ4WsYw9AKKWdTvl0Il706EWdCy24V87R_F4/edit#heading=h.1ku5wcoxqifr BUG=679830, 697773, 697384, 697062 Review-Url: https://codereview.chromium.org/2741203002 Cr-Commit-Position: refs/heads/master@{#457712} Committed: https://chromium.googlesource.com/chromium/src/+/6e4c507dc612077518d242eabcfae9622601d7e6

Patch Set 1 : original CL #

Patch Set 2 : original CL, rebased #

Patch Set 3 : fixed CL #

Patch Set 4 : nit #

Patch Set 5 : nit #

Total comments: 15

Patch Set 6 : review #

Patch Set 7 : review #

Total comments: 2

Patch Set 8 : review #

Patch Set 9 : nit: comment #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -959 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 5 6 7 8 9 6 chunks +19 lines, -15 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -24 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 7 chunks +11 lines, -11 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M components/tracing/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D components/tracing/child/child_memory_dump_manager_delegate_impl.h View 1 chunk +0 lines, -85 lines 0 comments Download
D components/tracing/child/child_memory_dump_manager_delegate_impl.cc View 1 chunk +0 lines, -114 lines 0 comments Download
M components/tracing/child/child_trace_message_filter.h View 4 chunks +0 lines, -17 lines 0 comments Download
M components/tracing/child/child_trace_message_filter.cc View 7 chunks +14 lines, -63 lines 0 comments Download
D components/tracing/child/child_trace_message_filter_browsertest.cc View 1 chunk +0 lines, -326 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/tracing/trace_message_filter.h View 3 chunks +0 lines, -8 lines 0 comments Download
M content/browser/tracing/trace_message_filter.cc View 3 chunks +0 lines, -29 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 6 chunks +0 lines, -33 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -172 lines 0 comments Download
M content/child/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/child/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/child_process_host_impl.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/child_process_host.h View 1 chunk +0 lines, -5 lines 0 comments Download
M services/resource_coordinator/BUILD.gn View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl.h View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -4 lines 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +28 lines, -16 lines 0 comments Download
M services/resource_coordinator/memory/coordinator/coordinator_impl_unittest.cc View 7 chunks +12 lines, -8 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h View 1 2 2 chunks +52 lines, -7 lines 0 comments Download
M services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc View 1 2 4 chunks +58 lines, -12 lines 0 comments Download
A services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl_unittest.cc View 1 2 1 chunk +135 lines, -0 lines 0 comments Download
M services/resource_coordinator/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A services/resource_coordinator/public/interfaces/memory/constants.mojom View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
chiniforooshan
Hi Primiano, I removed global/static variables. CoordinatorImpl is now owned by BrowserMainLoop, the same thing ...
3 years, 9 months ago (2017-03-10 23:11:48 UTC) #4
Primiano Tucci (use gerrit)
The new code layout of the memory classes looks good to me. A bit doubtful ...
3 years, 9 months ago (2017-03-13 21:31:11 UTC) #7
DmitrySkiba
https://codereview.chromium.org/2741203002/diff/80001/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/2741203002/diff/80001/base/trace_event/memory_dump_manager.h#newcode143 base/trace_event/memory_dump_manager.h:143: uint64_t GetTracingProcessId() const { return tracing_process_id_; } I think ...
3 years, 9 months ago (2017-03-14 00:00:43 UTC) #9
chiniforooshan
+jam: Sorry that this CL keeps getting reverted :( I hope this is attempt succeeds. ...
3 years, 9 months ago (2017-03-14 16:06:37 UTC) #11
Primiano Tucci (use gerrit)
*memory* LGTM. I leave the discussion about browswer_main_loop.cc to more knowledgeable people. May the force ...
3 years, 9 months ago (2017-03-15 16:59:40 UTC) #12
jam
https://codereview.chromium.org/2741203002/diff/80001/content/browser/browser_main_loop.h File content/browser/browser_main_loop.h (right): https://codereview.chromium.org/2741203002/diff/80001/content/browser/browser_main_loop.h#newcode116 content/browser/browser_main_loop.h:116: static memory_instrumentation::CoordinatorImpl* On 2017/03/14 16:06:36, chiniforooshan wrote: > On ...
3 years, 9 months ago (2017-03-15 17:14:46 UTC) #13
chiniforooshan
https://codereview.chromium.org/2741203002/diff/80001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/2741203002/diff/80001/base/trace_event/memory_dump_manager_unittest.cc#newcode290 base/trace_event/memory_dump_manager_unittest.cc:290: MemoryDumpManagerDelegateForTesting* delegate_ptr_; On 2017/03/15 16:59:40, Primiano Tucci (slow - ...
3 years, 9 months ago (2017-03-15 18:27:30 UTC) #14
Mike West
(The bits you've asked me to review look reasonable, but I'm holding off stamping the ...
3 years, 9 months ago (2017-03-16 15:06:00 UTC) #15
jam
lgtm with comment https://codereview.chromium.org/2741203002/diff/120001/services/resource_coordinator/memory/coordinator/coordinator_impl.h File services/resource_coordinator/memory/coordinator/coordinator_impl.h (right): https://codereview.chromium.org/2741203002/diff/120001/services/resource_coordinator/memory/coordinator/coordinator_impl.h#newcode26 services/resource_coordinator/memory/coordinator/coordinator_impl.h:26: static void SetInstance(CoordinatorImpl* coordinator_impl); this seems ...
3 years, 9 months ago (2017-03-16 15:42:43 UTC) #16
chiniforooshan
Thanks all. Will wait for Mike's LGTM. https://codereview.chromium.org/2741203002/diff/120001/services/resource_coordinator/memory/coordinator/coordinator_impl.h File services/resource_coordinator/memory/coordinator/coordinator_impl.h (right): https://codereview.chromium.org/2741203002/diff/120001/services/resource_coordinator/memory/coordinator/coordinator_impl.h#newcode26 services/resource_coordinator/memory/coordinator/coordinator_impl.h:26: static void ...
3 years, 9 months ago (2017-03-16 17:13:17 UTC) #17
Mike West
LGTM, thanks!
3 years, 9 months ago (2017-03-16 17:37:19 UTC) #18
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/2741203002/160001
3 years, 9 months ago (2017-03-17 03:10:19 UTC) #25
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/387868)
3 years, 9 months ago (2017-03-17 03:18:39 UTC) #27
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/2741203002/180001
3 years, 9 months ago (2017-03-17 04:10:39 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/410941)
3 years, 9 months ago (2017-03-17 06:13:22 UTC) #32
chiniforooshan
On 2017/03/17 06:13:22, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-17 07:13:19 UTC) #33
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/2741203002/180001
3 years, 9 months ago (2017-03-17 07:13:51 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 07:57:45 UTC) #38
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/6e4c507dc612077518d242eabcfa...

Powered by Google App Engine
This is Rietveld 408576698