Index: services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h |
diff --git a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h |
index 55d916b9137ea944032107fe18838f8643b7ee2e..6a2e6fa627ce28ca557fbcc3b6b168308573b5ba 100644 |
--- a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h |
+++ b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h |
@@ -92,6 +92,18 @@ struct SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_EXPORT |
template <> |
struct SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_EXPORT StructTraits< |
+ memory_instrumentation::mojom::PlatformPrivateFootprintDataView, |
+ base::trace_event::ProcessMemoryTotals::PrivateMemoryFootprint> { |
+ static uint32_t resident_set_kb( |
+ const base::trace_event::MemoryDumpCallbackResult::OSMemDump& args) { |
+ return args.resident_set_kb; |
+ } |
+ static bool Read(memory_instrumentation::mojom::OSMemDumpDataView input, |
+ base::trace_event::MemoryDumpCallbackResult::OSMemDump* out); |
+}; |
+ |
+template <> |
+struct SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_EXPORT StructTraits< |
memory_instrumentation::mojom::MemoryDumpCallbackResultDataView, |
base::trace_event::MemoryDumpCallbackResult> { |
static base::trace_event::MemoryDumpCallbackResult::OSMemDump os_dump( |