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

Unified Diff: services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h

Issue 2845813005: memory-infra: Plumb platform_private_footprint to service (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698