|
Revert of memory-infra: Finish moving to Mojo (2nd attempt) (patchset #8 id:140001 of https://codereview.chromium.org/2734193002/ )
Reason for revert:
Causing assertion failures on the GPU FYI waterfall:
https://build.chromium.org/p/chromium.gpu.fyi/builders/Mac%20Debug%20%28Intel%29/builds/1049
Original issue's description:
> memory-infra: Finish moving to Mojo (2nd attempt)
>
> This was originally landed in https://codereview.chromium.org/2694083005.
> But, it broke webview perf tests, and so, it was reverted. It turned out that
> in some scenarios, the memory dump manager is not initialized early enough (in
> the browser process). So, now, I initialize it as soon as the UI thread is
> created.
>
> Modifications since the original CL are:
>
> - The Coordinator service is created when the UI thread is created
> (browser_main_loop.cc).
> - When Coordinator is created, it initializes memory dump manager's TPID
> (memory_dump_manager_delegate_impl.cc).
> - To avoid dependency from //services/resource_coordinator to //content the
> definition of the service TPID is moved from child_process_host.h to
> constants.mojom.
>
> I tested the CL by building for Android and running the following with an
> android device attached:
>
> run_benchmark memory.top_10_mobile --browser=android-webview
> --also-run-disabled-tests
>
> In the original reverted CL, the above command results in
> 'Unable to obtain memory dump' exceptions. With this CL the test runs
> successfully.
>
> 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/2734193002
> Cr-Commit-Position: refs/heads/master@{#455866}
> Committed: https://chromium.googlesource.com/chromium/src/+/0a3a302b6df6458b21b3ce0951c5251413cadc48
TBR=primiano@chromium.org,ssid@chromium.org,kenrb@chromium.org,jam@chromium.org,chiniforooshan@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 679830, 697773, 697384, 697062
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+954 lines, -403 lines) |
Patch |
 |
M |
base/trace_event/memory_dump_manager.h
|
View
|
|
6 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
base/trace_event/memory_dump_manager.cc
|
View
|
|
5 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/trace_event/memory_dump_manager_unittest.cc
|
View
|
|
6 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/DEPS
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
|
3 chunks |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
components/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/tracing/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/tracing/child/child_memory_dump_manager_delegate_impl.h
|
View
|
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/tracing/child/child_memory_dump_manager_delegate_impl.cc
|
View
|
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/tracing/child/child_trace_message_filter.h
|
View
|
|
4 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/tracing/child/child_trace_message_filter.cc
|
View
|
|
7 chunks |
+63 lines, -14 lines |
0 comments
|
Download
|
 |
A |
components/tracing/child/child_trace_message_filter_browsertest.cc
|
View
|
|
1 chunk |
+326 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/browser_main.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/gpu/browser_gpu_channel_host_factory.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/tracing/trace_message_filter.h
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/tracing/trace_message_filter.cc
|
View
|
|
3 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/tracing/tracing_controller_impl.h
|
View
|
|
6 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/tracing/tracing_controller_impl.cc
|
View
|
|
4 chunks |
+172 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/child/DEPS
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/child/child_thread_impl.cc
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/DEPS
|
View
|
|
1 chunk |
+0 lines, -1 line |
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 |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/app/mojo/content_browser_manifest.json
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/common/child_process_host.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/test/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/BUILD.gn
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/memory/coordinator/coordinator_impl.h
|
View
|
|
4 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/memory/coordinator/coordinator_impl.cc
|
View
|
|
4 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/memory/coordinator/coordinator_impl_unittest.cc
|
View
|
|
7 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h
|
View
|
|
2 chunks |
+8 lines, -56 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc
|
View
|
|
2 chunks |
+11 lines, -72 lines |
0 comments
|
Download
|
 |
D |
services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -136 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/interfaces/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
services/resource_coordinator/public/interfaces/memory/constants.mojom
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|