#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-blink.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-params-data.h"
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-shared-message-ids.h"
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-blink-import-headers.h"
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace memory_instrumentation::mojom::blink {
constexpr uint32_t VmRegion::kProtectionFlagsRead;
constexpr uint32_t VmRegion::kProtectionFlagsWrite;
constexpr uint32_t VmRegion::kProtectionFlagsExec;
constexpr uint32_t VmRegion::kProtectionFlagsMayshare;
RequestArgs::RequestArgs()
: … { … }
RequestArgs::RequestArgs(
uint64_t dump_guid_in,
DumpType dump_type_in,
LevelOfDetail level_of_detail_in,
Determinism determinism_in)
: … { … }
RequestArgs::~RequestArgs() = default;
size_t RequestArgs::Hash(size_t seed) const { … }
void RequestArgs::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RequestArgs::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawAllocatorDumpEdge::RawAllocatorDumpEdge()
: … { … }
RawAllocatorDumpEdge::RawAllocatorDumpEdge(
uint64_t source_id_in,
uint64_t target_id_in,
int32_t importance_in,
bool overridable_in)
: … { … }
RawAllocatorDumpEdge::~RawAllocatorDumpEdge() = default;
size_t RawAllocatorDumpEdge::Hash(size_t seed) const { … }
void RawAllocatorDumpEdge::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RawAllocatorDumpEdge::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawAllocatorDumpEntry::RawAllocatorDumpEntry()
: … { … }
RawAllocatorDumpEntry::RawAllocatorDumpEntry(
const WTF::String& name_in,
const WTF::String& units_in,
RawAllocatorDumpEntryValuePtr value_in)
: … { … }
RawAllocatorDumpEntry::~RawAllocatorDumpEntry() = default;
size_t RawAllocatorDumpEntry::Hash(size_t seed) const { … }
void RawAllocatorDumpEntry::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RawAllocatorDumpEntry::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawAllocatorDump::RawAllocatorDump()
: … { … }
RawAllocatorDump::RawAllocatorDump(
uint64_t id_in,
const WTF::String& absolute_name_in,
bool weak_in,
LevelOfDetail level_of_detail_in,
WTF::Vector<RawAllocatorDumpEntryPtr> entries_in)
: … { … }
RawAllocatorDump::~RawAllocatorDump() = default;
void RawAllocatorDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RawAllocatorDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawProcessMemoryDump::RawProcessMemoryDump()
: … { … }
RawProcessMemoryDump::RawProcessMemoryDump(
LevelOfDetail level_of_detail_in,
WTF::Vector<RawAllocatorDumpEdgePtr> allocator_dump_edges_in,
WTF::Vector<RawAllocatorDumpPtr> allocator_dumps_in)
: … { … }
RawProcessMemoryDump::~RawProcessMemoryDump() = default;
void RawProcessMemoryDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RawProcessMemoryDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
VmRegion::VmRegion()
: … { … }
VmRegion::VmRegion(
uint64_t start_address_in,
uint64_t size_in_bytes_in,
uint64_t module_timestamp_in,
const WTF::String& module_debugid_in,
const WTF::String& module_debug_path_in,
uint32_t protection_flags_in,
const WTF::String& mapped_file_in,
uint64_t byte_stats_private_dirty_resident_in,
uint64_t byte_stats_private_clean_resident_in,
uint64_t byte_stats_shared_dirty_resident_in,
uint64_t byte_stats_shared_clean_resident_in,
uint64_t byte_stats_swapped_in,
uint64_t byte_locked_in,
uint64_t byte_stats_proportional_resident_in)
: … { … }
VmRegion::~VmRegion() = default;
size_t VmRegion::Hash(size_t seed) const { … }
void VmRegion::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool VmRegion::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PlatformPrivateFootprint::PlatformPrivateFootprint()
: … { … }
PlatformPrivateFootprint::PlatformPrivateFootprint(
uint64_t phys_footprint_bytes_in,
uint64_t internal_bytes_in,
uint64_t compressed_bytes_in,
uint64_t rss_anon_bytes_in,
uint64_t vm_swap_bytes_in,
uint64_t private_bytes_in)
: … { … }
PlatformPrivateFootprint::~PlatformPrivateFootprint() = default;
size_t PlatformPrivateFootprint::Hash(size_t seed) const { … }
void PlatformPrivateFootprint::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PlatformPrivateFootprint::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawOSMemDump::RawOSMemDump()
: … { … }
RawOSMemDump::RawOSMemDump(
uint32_t resident_set_kb_in,
uint32_t peak_resident_set_kb_in,
bool is_peak_rss_resettable_in,
PlatformPrivateFootprintPtr platform_private_footprint_in,
WTF::Vector<VmRegionPtr> memory_maps_in,
WTF::Vector<uint8_t> native_library_pages_bitmap_in)
: … { … }
RawOSMemDump::~RawOSMemDump() = default;
void RawOSMemDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RawOSMemDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OSMemDump::OSMemDump()
: … { … }
OSMemDump::OSMemDump(
uint32_t resident_set_kb_in,
uint32_t peak_resident_set_kb_in,
bool is_peak_rss_resettable_in,
uint32_t private_footprint_kb_in,
uint32_t shared_footprint_kb_in,
uint32_t private_footprint_swap_kb_in)
: … { … }
OSMemDump::~OSMemDump() = default;
size_t OSMemDump::Hash(size_t seed) const { … }
void OSMemDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool OSMemDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AllocatorMemDump::AllocatorMemDump()
: … { … }
AllocatorMemDump::AllocatorMemDump(
const WTF::HashMap<WTF::String, uint64_t>& numeric_entries_in,
WTF::HashMap<WTF::String, AllocatorMemDumpPtr> children_in)
: … { … }
AllocatorMemDump::~AllocatorMemDump() = default;
void AllocatorMemDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AllocatorMemDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProcessMemoryDump::ProcessMemoryDump()
: … { … }
ProcessMemoryDump::ProcessMemoryDump(
ProcessType process_type_in,
OSMemDumpPtr os_dump_in,
WTF::HashMap<WTF::String, AllocatorMemDumpPtr> chrome_allocator_dumps_in,
::mojo_base::mojom::blink::ProcessIdPtr pid_in,
const WTF::String& service_name_in)
: … { … }
ProcessMemoryDump::~ProcessMemoryDump() = default;
void ProcessMemoryDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ProcessMemoryDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatedMetrics::AggregatedMetrics()
: … { … }
AggregatedMetrics::AggregatedMetrics(
int32_t native_library_resident_kb_in,
int32_t native_library_resident_not_ordered_kb_in,
int32_t native_library_not_resident_ordered_kb_in)
: … { … }
AggregatedMetrics::~AggregatedMetrics() = default;
size_t AggregatedMetrics::Hash(size_t seed) const { … }
void AggregatedMetrics::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatedMetrics::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GlobalMemoryDump::GlobalMemoryDump()
: … { … }
GlobalMemoryDump::GlobalMemoryDump(
::base::TimeTicks start_time_in,
WTF::Vector<ProcessMemoryDumpPtr> process_dumps_in,
AggregatedMetricsPtr aggregated_metrics_in)
: … { … }
GlobalMemoryDump::~GlobalMemoryDump() = default;
void GlobalMemoryDump::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool GlobalMemoryDump::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HeapProfileResult::HeapProfileResult()
: … { … }
HeapProfileResult::HeapProfileResult(
::mojo_base::mojom::blink::ProcessIdPtr pid_in,
const ::WTF::String& json_in)
: … { … }
HeapProfileResult::~HeapProfileResult() = default;
void HeapProfileResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool HeapProfileResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RawAllocatorDumpEntryValue::RawAllocatorDumpEntryValue() : … { … }
RawAllocatorDumpEntryValue::~RawAllocatorDumpEntryValue() { … }
void RawAllocatorDumpEntryValue::set_value_uint64(
uint64_t value_uint64) { … }
void RawAllocatorDumpEntryValue::set_value_string(
const WTF::String& value_string) { … }
void RawAllocatorDumpEntryValue::DestroyActive() { … }
size_t RawAllocatorDumpEntryValue::Hash(size_t seed) const { … }
bool RawAllocatorDumpEntryValue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char ClientProcess::Name_[] = …;
ClientProcess::IPCStableHashFunction ClientProcess::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ClientProcess::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ClientProcess::RequestChromeMemoryDump_Sym::IPCStableHash() { … }
uint32_t ClientProcess::RequestOSMemoryDump_Sym::IPCStableHash() { … }
# endif
class ClientProcess_RequestChromeMemoryDump_ForwardToCallback
: public mojo::MessageReceiver { … };
class ClientProcess_RequestOSMemoryDump_ForwardToCallback
: public mojo::MessageReceiver { … };
ClientProcessProxy::ClientProcessProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ClientProcessProxy::RequestChromeMemoryDump(
RequestArgsPtr in_args, RequestChromeMemoryDumpCallback callback) { … }
void ClientProcessProxy::RequestOSMemoryDump(
MemoryMapOption in_option, WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> in_pids, RequestOSMemoryDumpCallback callback) { … }
class ClientProcess_RequestChromeMemoryDump_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ClientProcess_RequestChromeMemoryDump_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ClientProcess_RequestChromeMemoryDump_ProxyToResponder::Run(
bool in_success, uint64_t in_dump_id, RawProcessMemoryDumpPtr in_raw_process_memory_dump) { … }
class ClientProcess_RequestOSMemoryDump_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ClientProcess_RequestOSMemoryDump_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ClientProcess_RequestOSMemoryDump_ProxyToResponder::Run(
bool in_success, WTF::HashMap<::mojo_base::mojom::blink::ProcessIdPtr, RawOSMemDumpPtr> in_dumps) { … }
bool ClientProcessStubDispatch::Accept(
ClientProcess* impl,
mojo::Message* message) { … }
bool ClientProcessStubDispatch::AcceptWithResponder(
ClientProcess* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kClientProcessValidationInfo[] = …;
bool ClientProcessRequestValidator::Accept(mojo::Message* message) { … }
bool ClientProcessResponseValidator::Accept(mojo::Message* message) { … }
const char HeapProfiler::Name_[] = …;
HeapProfiler::IPCStableHashFunction HeapProfiler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* HeapProfiler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HeapProfiler::DumpProcessesForTracing_Sym::IPCStableHash() { … }
# endif
class HeapProfiler_DumpProcessesForTracing_ForwardToCallback
: public mojo::MessageReceiver { … };
HeapProfilerProxy::HeapProfilerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void HeapProfilerProxy::DumpProcessesForTracing(
bool in_strip_path_from_mapped_files, bool in_write_proto, DumpProcessesForTracingCallback callback) { … }
class HeapProfiler_DumpProcessesForTracing_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool HeapProfiler_DumpProcessesForTracing_ForwardToCallback::Accept(
mojo::Message* message) { … }
void HeapProfiler_DumpProcessesForTracing_ProxyToResponder::Run(
WTF::Vector<HeapProfileResultPtr> in_results) { … }
bool HeapProfilerStubDispatch::Accept(
HeapProfiler* impl,
mojo::Message* message) { … }
bool HeapProfilerStubDispatch::AcceptWithResponder(
HeapProfiler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kHeapProfilerValidationInfo[] = …;
bool HeapProfilerRequestValidator::Accept(mojo::Message* message) { … }
bool HeapProfilerResponseValidator::Accept(mojo::Message* message) { … }
const char HeapProfilerHelper::Name_[] = …;
HeapProfilerHelper::IPCStableHashFunction HeapProfilerHelper::MessageToMethodInfo_(mojo::Message& message) { … }
const char* HeapProfilerHelper::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HeapProfilerHelper::GetVmRegionsForHeapProfiler_Sym::IPCStableHash() { … }
# endif
class HeapProfilerHelper_GetVmRegionsForHeapProfiler_ForwardToCallback
: public mojo::MessageReceiver { … };
HeapProfilerHelperProxy::HeapProfilerHelperProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void HeapProfilerHelperProxy::GetVmRegionsForHeapProfiler(
WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> in_pids, GetVmRegionsForHeapProfilerCallback callback) { … }
class HeapProfilerHelper_GetVmRegionsForHeapProfiler_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool HeapProfilerHelper_GetVmRegionsForHeapProfiler_ForwardToCallback::Accept(
mojo::Message* message) { … }
void HeapProfilerHelper_GetVmRegionsForHeapProfiler_ProxyToResponder::Run(
WTF::HashMap<::mojo_base::mojom::blink::ProcessIdPtr, WTF::Vector<VmRegionPtr>> in_vm_regions) { … }
bool HeapProfilerHelperStubDispatch::Accept(
HeapProfilerHelper* impl,
mojo::Message* message) { … }
bool HeapProfilerHelperStubDispatch::AcceptWithResponder(
HeapProfilerHelper* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kHeapProfilerHelperValidationInfo[] = …;
bool HeapProfilerHelperRequestValidator::Accept(mojo::Message* message) { … }
bool HeapProfilerHelperResponseValidator::Accept(mojo::Message* message) { … }
const char Coordinator::Name_[] = …;
Coordinator::IPCStableHashFunction Coordinator::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Coordinator::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Coordinator::RequestGlobalMemoryDump_Sym::IPCStableHash() { … }
uint32_t Coordinator::RequestGlobalMemoryDumpForPid_Sym::IPCStableHash() { … }
uint32_t Coordinator::RequestPrivateMemoryFootprint_Sym::IPCStableHash() { … }
uint32_t Coordinator::RequestGlobalMemoryDumpAndAppendToTrace_Sym::IPCStableHash() { … }
# endif
class Coordinator_RequestGlobalMemoryDump_ForwardToCallback
: public mojo::MessageReceiver { … };
class Coordinator_RequestGlobalMemoryDumpForPid_ForwardToCallback
: public mojo::MessageReceiver { … };
class Coordinator_RequestPrivateMemoryFootprint_ForwardToCallback
: public mojo::MessageReceiver { … };
class Coordinator_RequestGlobalMemoryDumpAndAppendToTrace_ForwardToCallback
: public mojo::MessageReceiver { … };
CoordinatorProxy::CoordinatorProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CoordinatorProxy::RequestGlobalMemoryDump(
DumpType in_dump_type, LevelOfDetail in_level_of_detail, Determinism in_determinism, const WTF::Vector<WTF::String>& in_allocator_dump_names, RequestGlobalMemoryDumpCallback callback) { … }
void CoordinatorProxy::RequestGlobalMemoryDumpForPid(
::mojo_base::mojom::blink::ProcessIdPtr in_pid, const WTF::Vector<WTF::String>& in_allocator_dump_names, RequestGlobalMemoryDumpForPidCallback callback) { … }
void CoordinatorProxy::RequestPrivateMemoryFootprint(
::mojo_base::mojom::blink::ProcessIdPtr in_pid, RequestPrivateMemoryFootprintCallback callback) { … }
void CoordinatorProxy::RequestGlobalMemoryDumpAndAppendToTrace(
DumpType in_dump_type, LevelOfDetail in_level_of_detail, Determinism in_determinism, RequestGlobalMemoryDumpAndAppendToTraceCallback callback) { … }
class Coordinator_RequestGlobalMemoryDump_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Coordinator_RequestGlobalMemoryDump_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Coordinator_RequestGlobalMemoryDump_ProxyToResponder::Run(
bool in_success, GlobalMemoryDumpPtr in_global_memory_dump) { … }
class Coordinator_RequestGlobalMemoryDumpForPid_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Coordinator_RequestGlobalMemoryDumpForPid_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Coordinator_RequestGlobalMemoryDumpForPid_ProxyToResponder::Run(
bool in_success, GlobalMemoryDumpPtr in_global_memory_dump) { … }
class Coordinator_RequestPrivateMemoryFootprint_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Coordinator_RequestPrivateMemoryFootprint_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Coordinator_RequestPrivateMemoryFootprint_ProxyToResponder::Run(
bool in_success, GlobalMemoryDumpPtr in_global_memory_dump) { … }
class Coordinator_RequestGlobalMemoryDumpAndAppendToTrace_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Coordinator_RequestGlobalMemoryDumpAndAppendToTrace_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Coordinator_RequestGlobalMemoryDumpAndAppendToTrace_ProxyToResponder::Run(
bool in_success, uint64_t in_dump_id) { … }
bool CoordinatorStubDispatch::Accept(
Coordinator* impl,
mojo::Message* message) { … }
bool CoordinatorStubDispatch::AcceptWithResponder(
Coordinator* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCoordinatorValidationInfo[] = …;
bool CoordinatorRequestValidator::Accept(mojo::Message* message) { … }
bool CoordinatorResponseValidator::Accept(mojo::Message* message) { … }
const char CoordinatorConnector::Name_[] = …;
CoordinatorConnector::IPCStableHashFunction CoordinatorConnector::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CoordinatorConnector::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CoordinatorConnector::RegisterCoordinatorClient_Sym::IPCStableHash() { … }
# endif
CoordinatorConnectorProxy::CoordinatorConnectorProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CoordinatorConnectorProxy::RegisterCoordinatorClient(
::mojo::PendingReceiver<Coordinator> in_receiver, ::mojo::PendingRemote<ClientProcess> in_client_process) { … }
bool CoordinatorConnectorStubDispatch::Accept(
CoordinatorConnector* impl,
mojo::Message* message) { … }
bool CoordinatorConnectorStubDispatch::AcceptWithResponder(
CoordinatorConnector* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCoordinatorConnectorValidationInfo[] = …;
bool CoordinatorConnectorRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::memory_instrumentation::mojom::blink::RequestArgs::DataView, ::memory_instrumentation::mojom::blink::RequestArgsPtr>::Read(
::memory_instrumentation::mojom::blink::RequestArgs::DataView input,
::memory_instrumentation::mojom::blink::RequestArgsPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::RawAllocatorDumpEdge::DataView, ::memory_instrumentation::mojom::blink::RawAllocatorDumpEdgePtr>::Read(
::memory_instrumentation::mojom::blink::RawAllocatorDumpEdge::DataView input,
::memory_instrumentation::mojom::blink::RawAllocatorDumpEdgePtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::RawAllocatorDumpEntry::DataView, ::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryPtr>::Read(
::memory_instrumentation::mojom::blink::RawAllocatorDumpEntry::DataView input,
::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::RawAllocatorDump::DataView, ::memory_instrumentation::mojom::blink::RawAllocatorDumpPtr>::Read(
::memory_instrumentation::mojom::blink::RawAllocatorDump::DataView input,
::memory_instrumentation::mojom::blink::RawAllocatorDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::RawProcessMemoryDump::DataView, ::memory_instrumentation::mojom::blink::RawProcessMemoryDumpPtr>::Read(
::memory_instrumentation::mojom::blink::RawProcessMemoryDump::DataView input,
::memory_instrumentation::mojom::blink::RawProcessMemoryDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::VmRegion::DataView, ::memory_instrumentation::mojom::blink::VmRegionPtr>::Read(
::memory_instrumentation::mojom::blink::VmRegion::DataView input,
::memory_instrumentation::mojom::blink::VmRegionPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::PlatformPrivateFootprint::DataView, ::memory_instrumentation::mojom::blink::PlatformPrivateFootprintPtr>::Read(
::memory_instrumentation::mojom::blink::PlatformPrivateFootprint::DataView input,
::memory_instrumentation::mojom::blink::PlatformPrivateFootprintPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::RawOSMemDump::DataView, ::memory_instrumentation::mojom::blink::RawOSMemDumpPtr>::Read(
::memory_instrumentation::mojom::blink::RawOSMemDump::DataView input,
::memory_instrumentation::mojom::blink::RawOSMemDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::OSMemDump::DataView, ::memory_instrumentation::mojom::blink::OSMemDumpPtr>::Read(
::memory_instrumentation::mojom::blink::OSMemDump::DataView input,
::memory_instrumentation::mojom::blink::OSMemDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::AllocatorMemDump::DataView, ::memory_instrumentation::mojom::blink::AllocatorMemDumpPtr>::Read(
::memory_instrumentation::mojom::blink::AllocatorMemDump::DataView input,
::memory_instrumentation::mojom::blink::AllocatorMemDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::ProcessMemoryDump::DataView, ::memory_instrumentation::mojom::blink::ProcessMemoryDumpPtr>::Read(
::memory_instrumentation::mojom::blink::ProcessMemoryDump::DataView input,
::memory_instrumentation::mojom::blink::ProcessMemoryDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::AggregatedMetrics::DataView, ::memory_instrumentation::mojom::blink::AggregatedMetricsPtr>::Read(
::memory_instrumentation::mojom::blink::AggregatedMetrics::DataView input,
::memory_instrumentation::mojom::blink::AggregatedMetricsPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::GlobalMemoryDump::DataView, ::memory_instrumentation::mojom::blink::GlobalMemoryDumpPtr>::Read(
::memory_instrumentation::mojom::blink::GlobalMemoryDump::DataView input,
::memory_instrumentation::mojom::blink::GlobalMemoryDumpPtr* output) { … }
bool StructTraits<::memory_instrumentation::mojom::blink::HeapProfileResult::DataView, ::memory_instrumentation::mojom::blink::HeapProfileResultPtr>::Read(
::memory_instrumentation::mojom::blink::HeapProfileResult::DataView input,
::memory_instrumentation::mojom::blink::HeapProfileResultPtr* output) { … }
bool UnionTraits<::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryValue::DataView, ::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryValuePtr>::Read(
::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryValue::DataView input,
::memory_instrumentation::mojom::blink::RawAllocatorDumpEntryValuePtr* output) { … }
}
namespace memory_instrumentation::mojom::blink {
void ClientProcessInterceptorForTesting::RequestChromeMemoryDump(RequestArgsPtr args, RequestChromeMemoryDumpCallback callback) { … }
void ClientProcessInterceptorForTesting::RequestOSMemoryDump(MemoryMapOption option, WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> pids, RequestOSMemoryDumpCallback callback) { … }
ClientProcessAsyncWaiter::ClientProcessAsyncWaiter(
ClientProcess* proxy) : … { … }
ClientProcessAsyncWaiter::~ClientProcessAsyncWaiter() = default;
void ClientProcessAsyncWaiter::RequestChromeMemoryDump(
RequestArgsPtr args, bool* out_success, uint64_t* out_dump_id, RawProcessMemoryDumpPtr* out_raw_process_memory_dump) { … }
void ClientProcessAsyncWaiter::RequestOSMemoryDump(
MemoryMapOption option, WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> pids, bool* out_success, WTF::HashMap<::mojo_base::mojom::blink::ProcessIdPtr, RawOSMemDumpPtr>* out_dumps) { … }
void HeapProfilerInterceptorForTesting::DumpProcessesForTracing(bool strip_path_from_mapped_files, bool write_proto, DumpProcessesForTracingCallback callback) { … }
HeapProfilerAsyncWaiter::HeapProfilerAsyncWaiter(
HeapProfiler* proxy) : … { … }
HeapProfilerAsyncWaiter::~HeapProfilerAsyncWaiter() = default;
void HeapProfilerAsyncWaiter::DumpProcessesForTracing(
bool strip_path_from_mapped_files, bool write_proto, WTF::Vector<HeapProfileResultPtr>* out_results) { … }
WTF::Vector<HeapProfileResultPtr> HeapProfilerAsyncWaiter::DumpProcessesForTracing(
bool strip_path_from_mapped_files, bool write_proto) { … }
void HeapProfilerHelperInterceptorForTesting::GetVmRegionsForHeapProfiler(WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> pids, GetVmRegionsForHeapProfilerCallback callback) { … }
HeapProfilerHelperAsyncWaiter::HeapProfilerHelperAsyncWaiter(
HeapProfilerHelper* proxy) : … { … }
HeapProfilerHelperAsyncWaiter::~HeapProfilerHelperAsyncWaiter() = default;
void HeapProfilerHelperAsyncWaiter::GetVmRegionsForHeapProfiler(
WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> pids, WTF::HashMap<::mojo_base::mojom::blink::ProcessIdPtr, WTF::Vector<VmRegionPtr>>* out_vm_regions) { … }
WTF::HashMap<::mojo_base::mojom::blink::ProcessIdPtr, WTF::Vector<VmRegionPtr>> HeapProfilerHelperAsyncWaiter::GetVmRegionsForHeapProfiler(
WTF::Vector<::mojo_base::mojom::blink::ProcessIdPtr> pids) { … }
void CoordinatorInterceptorForTesting::RequestGlobalMemoryDump(DumpType dump_type, LevelOfDetail level_of_detail, Determinism determinism, const WTF::Vector<WTF::String>& allocator_dump_names, RequestGlobalMemoryDumpCallback callback) { … }
void CoordinatorInterceptorForTesting::RequestGlobalMemoryDumpForPid(::mojo_base::mojom::blink::ProcessIdPtr pid, const WTF::Vector<WTF::String>& allocator_dump_names, RequestGlobalMemoryDumpForPidCallback callback) { … }
void CoordinatorInterceptorForTesting::RequestPrivateMemoryFootprint(::mojo_base::mojom::blink::ProcessIdPtr pid, RequestPrivateMemoryFootprintCallback callback) { … }
void CoordinatorInterceptorForTesting::RequestGlobalMemoryDumpAndAppendToTrace(DumpType dump_type, LevelOfDetail level_of_detail, Determinism determinism, RequestGlobalMemoryDumpAndAppendToTraceCallback callback) { … }
CoordinatorAsyncWaiter::CoordinatorAsyncWaiter(
Coordinator* proxy) : … { … }
CoordinatorAsyncWaiter::~CoordinatorAsyncWaiter() = default;
void CoordinatorAsyncWaiter::RequestGlobalMemoryDump(
DumpType dump_type, LevelOfDetail level_of_detail, Determinism determinism, const WTF::Vector<WTF::String>& allocator_dump_names, bool* out_success, GlobalMemoryDumpPtr* out_global_memory_dump) { … }
void CoordinatorAsyncWaiter::RequestGlobalMemoryDumpForPid(
::mojo_base::mojom::blink::ProcessIdPtr pid, const WTF::Vector<WTF::String>& allocator_dump_names, bool* out_success, GlobalMemoryDumpPtr* out_global_memory_dump) { … }
void CoordinatorAsyncWaiter::RequestPrivateMemoryFootprint(
::mojo_base::mojom::blink::ProcessIdPtr pid, bool* out_success, GlobalMemoryDumpPtr* out_global_memory_dump) { … }
void CoordinatorAsyncWaiter::RequestGlobalMemoryDumpAndAppendToTrace(
DumpType dump_type, LevelOfDetail level_of_detail, Determinism determinism, bool* out_success, uint64_t* out_dump_id) { … }
void CoordinatorConnectorInterceptorForTesting::RegisterCoordinatorClient(::mojo::PendingReceiver<Coordinator> receiver, ::mojo::PendingRemote<ClientProcess> client_process) { … }
CoordinatorConnectorAsyncWaiter::CoordinatorConnectorAsyncWaiter(
CoordinatorConnector* proxy) : … { … }
CoordinatorConnectorAsyncWaiter::~CoordinatorConnectorAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif