Implement MemoryMeasurementProvider
Adds a MemoryMeasurementDelegate, with an interface modelled on
CPUMeasurementDelegate and a default implementation using
MemoryInstrumentation (based on ProcessMetricsDecorator.)
MemoryMeasurementProvider uses the delegate to get memory summaries
(PMF and RSS) from processes, and attributes memory to Frame, Worker
and Page ResourceContexts associated with each process.
A followup will call MemoryMeasurementProvider from QueryScheduler to
implement memory summary queries with the ResourceAttribution API.
Bug: 1471683
Change-Id: I7cd0282e396ae53f1e4be4a3af55e3f6d67b7ebc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5063455
Reviewed-by: Anthony Vallée-Dubois <[email protected]>
Commit-Queue: Joe Mason <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1230728}
diff --git a/components/performance_manager/test_support/BUILD.gn b/components/performance_manager/test_support/BUILD.gn
index d3c3912..a68c6847 100644
--- a/components/performance_manager/test_support/BUILD.gn
+++ b/components/performance_manager/test_support/BUILD.gn
@@ -11,6 +11,7 @@
sources = [
"decorators_utils.h",
"graph_impl.h",
+ "resource_attribution/gtest_util.h",
"run_in_graph.cc",
"run_in_graph.h",
"test_browser_child_process.cc",
@@ -48,7 +49,6 @@
"mock_graphs.h",
"performance_manager_test_harness.cc",
"performance_manager_test_harness.h",
- "resource_attribution/gmock_matchers.h",
"resource_attribution/simulated_cpu_measurement_delegate.cc",
"resource_attribution/simulated_cpu_measurement_delegate.h",
"test_worker_node_factory.cc",