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

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

Issue 2831073003: Reland of [Memory UMA] Return the extra_processes_dump map as part of the ResponseCallback (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 c9c6770b78382ba7a4c0a5424f6f76c7d40b16c9..817b667e355f735f5facc8a1888729da5fa399d6 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
@@ -5,7 +5,9 @@
#ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_MEMORY_INSTRUMENTATION_STRUCT_TRAITS_H_
#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_MEMORY_INSTRUMENTATION_STRUCT_TRAITS_H_
+#include "base/process/process_handle.h"
#include "base/trace_event/memory_dump_request_args.h"
+#include "mojo/common/common_custom_types_struct_traits.h"
#include "services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom.h"
namespace mojo {
@@ -95,6 +97,12 @@
const base::trace_event::MemoryDumpCallbackResult& args) {
return args.chrome_dump;
}
+ static const std::map<base::ProcessId,
+ base::trace_event::MemoryDumpCallbackResult::OSMemDump>&
+ extra_processes_dump(
+ const base::trace_event::MemoryDumpCallbackResult& args) {
+ return args.extra_processes_dump;
+ }
static bool Read(
memory_instrumentation::mojom::MemoryDumpCallbackResultDataView input,
base::trace_event::MemoryDumpCallbackResult* out);
« no previous file with comments | « mojo/common/typemaps.gni ('k') | services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698