|
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
Total comments: 12
|
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
|
Total messages: 29 (22 generated)
|