11#ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_TRACK_EVENT_DEBUG_ANNOTATION_PROTO_H_
12#define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_TRACK_EVENT_DEBUG_ANNOTATION_PROTO_H_
17#include "perfetto/protozero/field_writer.h"
18#include "perfetto/protozero/message.h"
19#include "perfetto/protozero/packed_repeated_fields.h"
20#include "perfetto/protozero/proto_decoder.h"
21#include "perfetto/protozero/proto_utils.h"
32 : TypedProtoDecoder(
data,
len) {}
34 : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.
data()),
37 : TypedProtoDecoder(raw.
data, raw.
size) {}
38 bool has_name()
const {
return at<10>().valid(); }
39 ::protozero::ConstChars
name()
const {
return at<10>().as_string(); }
41 ::protozero::ConstChars
string_value()
const {
return at<6>().as_string(); }
44 return at<9>().as_string();
57 return ".perfetto.protos.DebugAnnotation";
62 ::protozero::proto_utils::RepetitionType::kNotRepeated,
63 ::protozero::proto_utils::ProtoSchemaType::kString,
76 AppendBytes(FieldMetadata_Name::kFieldId,
data,
size);
79 AppendBytes(FieldMetadata_Name::kFieldId, chars.data, chars.size);
82 static constexpr uint32_t field_id = FieldMetadata_Name::kFieldId;
85 ::protozero::internal::FieldWriter<
86 ::protozero::proto_utils::ProtoSchemaType::kString>::Append(*
this,
93 ::protozero::proto_utils::RepetitionType::kNotRepeated,
94 ::protozero::proto_utils::ProtoSchemaType::kString,
107 AppendBytes(FieldMetadata_StringValue::kFieldId,
data,
size);
110 AppendBytes(FieldMetadata_StringValue::kFieldId, chars.data, chars.size);
113 static constexpr uint32_t field_id = FieldMetadata_StringValue::kFieldId;
116 ::protozero::internal::FieldWriter<
117 ::protozero::proto_utils::ProtoSchemaType::kString>::Append(*
this,
124 ::protozero::proto_utils::RepetitionType::kNotRepeated,
125 ::protozero::proto_utils::ProtoSchemaType::kString,
140 AppendBytes(FieldMetadata_LegacyJsonValue::kFieldId,
data,
size);
143 AppendBytes(FieldMetadata_LegacyJsonValue::kFieldId, chars.data,
147 static constexpr uint32_t field_id =
148 FieldMetadata_LegacyJsonValue::kFieldId;
151 ::protozero::internal::FieldWriter<
152 ::protozero::proto_utils::ProtoSchemaType::kString>::Append(*
this,
::protozero::ConstChars legacy_json_value() const
::protozero::ConstChars string_value() const
bool has_legacy_json_value() const
::protozero::ConstChars name() const
DebugAnnotation_Decoder(const ::protozero::ConstBytes &raw)
DebugAnnotation_Decoder(const uint8_t *data, size_t len)
DebugAnnotation_Decoder(const std::string &raw)
bool has_string_value() const
void set_name(const char *data, size_t size)
::protozero::proto_utils::FieldMetadata< 6, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kString, std::string, DebugAnnotation > FieldMetadata_StringValue
static constexpr FieldMetadata_StringValue kStringValue()
void set_string_value(::protozero::ConstChars chars)
@ kStringValueFieldNumber
@ kLegacyJsonValueFieldNumber
static constexpr const char * GetName()
void set_legacy_json_value(const char *data, size_t size)
void set_legacy_json_value(std::string value)
::protozero::proto_utils::FieldMetadata< 9, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kString, std::string, DebugAnnotation > FieldMetadata_LegacyJsonValue
::protozero::proto_utils::FieldMetadata< 10, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kString, std::string, DebugAnnotation > FieldMetadata_Name
void set_name(std::string value)
void set_legacy_json_value(::protozero::ConstChars chars)
void set_string_value(std::string value)
static constexpr FieldMetadata_LegacyJsonValue kLegacyJsonValue()
void set_string_value(const char *data, size_t size)
void set_name(::protozero::ConstChars chars)
static constexpr FieldMetadata_Name kName()
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
std::shared_ptr< const fml::Mapping > data