|
|
[GRC] Decouple Process CPU Measurement from CU Graph
Currently GRC's process CPU measurement mechanisms are tightly integrated with the process coordination unit implementation. This CL moves the CPU usage measurement from the resource_coordinator service to the content_browser service.
Abstraction Improvements:
Decoupling process CPU measurement from the CU model allows the coordination units to focus on representing browser state within GRC, rather than updating it. In GRC terms, the migrated render process CPU measurement infrastructure is a "probe" that externally triggers updates the CU graph.
Code Health Improvements:
The measurement decoupling makes the coordination unit graph more easily testable. To that end, coordination unit graph mocks have been created to address the repeating pattern of needing a given coordination unit graph topology for (unit)testing).
R=lpy@chromium.org,zhenw@chromium.org
TBR=oysteine@chromium.org
BUG= 691886
Total comments: 1
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+539 lines, -282 lines) |
Patch |
 |
M |
chrome/browser/BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_main.cc
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/resource_coordinator/resource_coordinator_render_process_probe.h
|
View
|
1
|
1 chunk |
+66 lines, -0 lines |
1 comment
|
Download
|
 |
A |
chrome/browser/resource_coordinator/resource_coordinator_render_process_probe.cc
|
View
|
1
2
3
|
1 chunk |
+108 lines, -0 lines |
1 comment
|
Download
|
 |
M |
services/resource_coordinator/BUILD.gn
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/coordination_unit/coordination_unit_impl.h
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
1 comment
|
Download
|
 |
M |
services/resource_coordinator/coordination_unit/coordination_unit_impl.cc
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+42 lines, -174 lines |
0 comments
|
Download
|
 |
A |
services/resource_coordinator/coordination_unit/mock_coordination_unit_graphs.h
|
View
|
1
2
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
A |
services/resource_coordinator/coordination_unit/mock_coordination_unit_graphs.cc
|
View
|
1
2
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/coordination_unit/process_coordination_unit_impl.h
|
View
|
1
2
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/coordination_unit/process_coordination_unit_impl.cc
|
View
|
1
2
|
2 chunks |
+9 lines, -58 lines |
0 comments
|
Download
|
 |
D |
services/resource_coordinator/coordination_unit/process_coordination_unit_impl_unittest.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -38 lines |
0 comments
|
Download
|
 |
A |
services/resource_coordinator/coordination_unit/web_contents_coordination_unit_impl_unittest.cc
|
View
|
1
2
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/cpp/resource_coordinator_interface.h
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/cpp/resource_coordinator_interface.cc
|
View
|
1
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/resource_coordinator/public/interfaces/coordination_unit.mojom
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 17 (12 generated)
|