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

Issue 2895083004: memory-infra: rename service folder to memory_instrumentation (Closed)

Created:
3 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chrome-grc-reviews_chromium.org, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, asvitkine+watch_chromium.org, tracing+reviews_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, darin (slow to review), oystein (OOO til 10th of July), fmeawad, ssid, erikchen, chiniforooshan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

memory-infra: rename service folder to memory_instrumentation This is a non-functional refactoring that renamed the memory instrumentation code within //services/resource_coordinator. Due to projects/people reshuffling the code ended up being moved into memory/coordinator that doesn't reflect what the code inside does (it deals only with instrumentation). Furthermore it is extremely confusing, as there is a "memory coordinator" project happening in chrome, which is completely orthogonal with this. The renames consists of: - Move the code in //services/resource_coordinator from memory/coordinator/ to memory_instrumentation - Ditto for the public library code in //services/resource_coordinator/public/cpp and //services/resource_coordinator/public/interfaces - Rename the class in the client library that handshakes with the Coordinator in the service and deals with in-process dumps from "ProcessLocalDumpManager" to "ClientProcess" On top of this, this CL does two minor cleanups in the memory-infra codebase: - Using new THREAD_CHECKER macro instead of the ThreadChecker class (reduces size on non-debug builds). - Sorts out the ...ForTesting() pattern in MemoryDumpManager, removing the need of friend-ing a class outside of its folder. BUG=703184 TBR=jochen@chromium.org Review-Url: https://codereview.chromium.org/2895083004 Cr-Commit-Position: refs/heads/master@{#473568} Committed: https://chromium.googlesource.com/chromium/src/+/aca468f8904f44043315a0366c645d594f765a06

Patch Set 1 #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -1843 lines) Patch
M base/trace_event/memory_dump_manager.h View 3 chunks +1 line, -9 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/process_memory_metrics_emitter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_main_loop.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_manager/common_browser_interfaces.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_thread_impl.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/resource_coordinator/BUILD.gn View 1 2 chunks +7 lines, -7 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/coordinator_impl.h View 1 chunk +0 lines, -129 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/coordinator_impl.cc View 1 chunk +0 lines, -303 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/coordinator_impl_unittest.cc View 1 chunk +0 lines, -153 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/process_map.h View 1 chunk +0 lines, -58 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/process_map.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D services/resource_coordinator/memory/coordinator/process_map_unittest.cc View 1 chunk +0 lines, -73 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/coordinator_impl.h View 6 chunks +17 lines, -23 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/coordinator_impl.cc View 1 2 7 chunks +37 lines, -36 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/coordinator_impl_unittest.cc View 7 chunks +28 lines, -24 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/process_map.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/process_map.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/resource_coordinator/memory_instrumentation/process_map_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/resource_coordinator/public/cpp/BUILD.gn View 1 2 chunks +5 lines, -5 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/OWNERS View 1 chunk +0 lines, -5 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/coordinator.h View 1 chunk +0 lines, -26 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/memory_instrumentation.typemap View 1 chunk +0 lines, -22 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h View 1 chunk +0 lines, -135 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc View 1 chunk +0 lines, -152 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.h View 1 chunk +0 lines, -114 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl.cc View 1 chunk +0 lines, -150 lines 0 comments Download
D services/resource_coordinator/public/cpp/memory/process_local_dump_manager_impl_unittest.cc View 1 chunk +0 lines, -140 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/client_process_impl.h View 5 chunks +15 lines, -16 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/client_process_impl.cc View 7 chunks +20 lines, -22 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/client_process_impl_unittest.cc View 8 chunks +16 lines, -20 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/coordinator.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.typemap View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation_struct_traits.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation_struct_traits.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/resource_coordinator/public/cpp/typemaps.gni View 1 chunk +1 line, -1 line 0 comments Download
M services/resource_coordinator/public/interfaces/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
D services/resource_coordinator/public/interfaces/memory/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D services/resource_coordinator/public/interfaces/memory/constants.mojom View 1 chunk +0 lines, -7 lines 0 comments Download
D services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom View 1 chunk +0 lines, -104 lines 0 comments Download
A + services/resource_coordinator/public/interfaces/memory_instrumentation/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/resource_coordinator/public/interfaces/memory_instrumentation/constants.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/resource_coordinator/public/interfaces/memory_instrumentation/memory_instrumentation.mojom View 2 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (22 generated)
Primiano Tucci (use gerrit)
Look, this week's BA in-flight entertainment was about the memory-instrumentation service. +hjd PTAL +others people ...
3 years, 7 months ago (2017-05-22 10:27:51 UTC) #11
hjd
lgtm % nits https://codereview.chromium.org/2895083004/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2895083004/diff/1/base/trace_event/memory_dump_manager.cc#newcode162 base/trace_event/memory_dump_manager.cc:162: std::unique_ptr<MemoryDumpManager> instance(new MemoryDumpManager()); nit: MakeUnique? https://codereview.chromium.org/2895083004/diff/1/services/resource_coordinator/memory_instrumentation/coordinator_impl.cc ...
3 years, 7 months ago (2017-05-22 10:46:29 UTC) #12
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2895083004/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2895083004/diff/1/base/trace_event/memory_dump_manager.cc#newcode162 base/trace_event/memory_dump_manager.cc:162: std::unique_ptr<MemoryDumpManager> instance(new MemoryDumpManager()); On 2017/05/22 10:46:29, hjd wrote: > ...
3 years, 7 months ago (2017-05-22 11:42:37 UTC) #16
Primiano Tucci (use gerrit)
+jochen for 15 lines in //content, and //chrome. I am just renaming things.
3 years, 7 months ago (2017-05-22 11:43:52 UTC) #19
Primiano Tucci (use gerrit)
On 2017/05/22 11:43:52, Primiano (slow - traveling) wrote: > +jochen for 15 lines in //content, ...
3 years, 7 months ago (2017-05-22 13:25:51 UTC) #23
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/2895083004/40001
3 years, 7 months ago (2017-05-22 13:26:16 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 13:30:50 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/aca468f8904f44043315a0366c64...

Powered by Google App Engine
This is Rietveld 408576698