#include "components/performance_manager/public/mojom/web_memory.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/performance_manager/public/mojom/web_memory.mojom-params-data.h"
namespace performance_manager {
namespace mojom {
NOINLINE static const char* WebMemoryAttribution_ScopeToStringHelper(WebMemoryAttribution_Scope value) { … }
std::string WebMemoryAttribution_ScopeToString(WebMemoryAttribution_Scope value) { … }
std::ostream& operator<<(std::ostream& os, WebMemoryAttribution_Scope value) { … }
NOINLINE static const char* WebMemoryMeasurement_ModeToStringHelper(WebMemoryMeasurement_Mode value) { … }
std::string WebMemoryMeasurement_ModeToString(WebMemoryMeasurement_Mode value) { … }
std::ostream& operator<<(std::ostream& os, WebMemoryMeasurement_Mode value) { … }
namespace internal {
bool WebMemoryAttribution_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebMemoryAttribution_Data::WebMemoryAttribution_Data()
: … { … }
bool WebMemoryUsage_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebMemoryUsage_Data::WebMemoryUsage_Data()
: … { … }
bool WebMemoryBreakdownEntry_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebMemoryBreakdownEntry_Data::WebMemoryBreakdownEntry_Data()
: … { … }
bool WebMemoryMeasurement_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebMemoryMeasurement_Data::WebMemoryMeasurement_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::performance_manager::mojom::WebMemoryAttribution_Scope>::WriteIntoTrace(
perfetto::TracedValue context, ::performance_manager::mojom::WebMemoryAttribution_Scope value) { … }
}
namespace perfetto {
void TraceFormatTraits<::performance_manager::mojom::WebMemoryMeasurement_Mode>::WriteIntoTrace(
perfetto::TracedValue context, ::performance_manager::mojom::WebMemoryMeasurement_Mode value) { … }
}