#include "components/services/heap_profiling/public/mojom/heap_profiling_client.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "components/services/heap_profiling/public/mojom/heap_profiling_client.mojom-params-data.h"
namespace heap_profiling {
namespace mojom {
NOINLINE static const char* StackModeToStringHelper(StackMode value) { … }
std::string StackModeToString(StackMode value) { … }
std::ostream& operator<<(std::ostream& os, StackMode value) { … }
NOINLINE static const char* AllocatorTypeToStringHelper(AllocatorType value) { … }
std::string AllocatorTypeToString(AllocatorType value) { … }
std::ostream& operator<<(std::ostream& os, AllocatorType value) { … }
namespace internal {
bool ProfilingParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingParams_Data::ProfilingParams_Data()
: … { … }
bool HeapProfileSample_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HeapProfileSample_Data::HeapProfileSample_Data()
: … { … }
bool HeapProfile_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HeapProfile_Data::HeapProfile_Data()
: … { … }
bool ProfilingClient_StartProfiling_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_StartProfiling_Params_Data::ProfilingClient_StartProfiling_Params_Data()
: … { … }
bool ProfilingClient_StartProfiling_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_StartProfiling_ResponseParams_Data::ProfilingClient_StartProfiling_ResponseParams_Data()
: … { … }
bool ProfilingClient_RetrieveHeapProfile_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_RetrieveHeapProfile_Params_Data::ProfilingClient_RetrieveHeapProfile_Params_Data()
: … { … }
bool ProfilingClient_RetrieveHeapProfile_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_RetrieveHeapProfile_ResponseParams_Data::ProfilingClient_RetrieveHeapProfile_ResponseParams_Data()
: … { … }
bool ProfilingClient_AddHeapProfileToTrace_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_AddHeapProfileToTrace_Params_Data::ProfilingClient_AddHeapProfileToTrace_Params_Data()
: … { … }
bool ProfilingClient_AddHeapProfileToTrace_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ProfilingClient_AddHeapProfileToTrace_ResponseParams_Data::ProfilingClient_AddHeapProfileToTrace_ResponseParams_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::heap_profiling::mojom::StackMode>::WriteIntoTrace(
perfetto::TracedValue context, ::heap_profiling::mojom::StackMode value) { … }
}
namespace perfetto {
void TraceFormatTraits<::heap_profiling::mojom::AllocatorType>::WriteIntoTrace(
perfetto::TracedValue context, ::heap_profiling::mojom::AllocatorType value) { … }
}