Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
perfetto::protos::pbzero::ThreadDescriptor Class Reference

#include <thread_descriptor.pbzero.h>

Inheritance diagram for perfetto::protos::pbzero::ThreadDescriptor:

Public Types

enum  : int32_t { kPidFieldNumber = 1 , kTidFieldNumber = 2 , kThreadNameFieldNumber = 5 }
 
using Decoder = ThreadDescriptor_Decoder
 
using FieldMetadata_Pid = ::protozero::proto_utils::FieldMetadata< 1, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kInt32, int32_t, ThreadDescriptor >
 
using FieldMetadata_Tid = ::protozero::proto_utils::FieldMetadata< 2, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kInt32, int32_t, ThreadDescriptor >
 
using FieldMetadata_ThreadName = ::protozero::proto_utils::FieldMetadata< 5, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kString, std::string, ThreadDescriptor >
 

Public Member Functions

void set_pid (int32_t value)
 
void set_tid (int32_t value)
 
void set_thread_name (const char *data, size_t size)
 
void set_thread_name (::protozero::ConstChars chars)
 
void set_thread_name (std::string value)
 

Static Public Member Functions

static constexpr const char * GetName ()
 
static constexpr FieldMetadata_Pid kPid ()
 
static constexpr FieldMetadata_Tid kTid ()
 
static constexpr FieldMetadata_ThreadName kThreadName ()
 

Detailed Description

Definition at line 46 of file thread_descriptor.pbzero.h.

Member Typedef Documentation

◆ Decoder

Definition at line 48 of file thread_descriptor.pbzero.h.

◆ FieldMetadata_Pid

using perfetto::protos::pbzero::ThreadDescriptor::FieldMetadata_Pid = ::protozero::proto_utils::FieldMetadata< 1, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kInt32, int32_t, ThreadDescriptor>

Definition at line 58 of file thread_descriptor.pbzero.h.

◆ FieldMetadata_ThreadName

using perfetto::protos::pbzero::ThreadDescriptor::FieldMetadata_ThreadName = ::protozero::proto_utils::FieldMetadata< 5, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kString, std::string, ThreadDescriptor>

Definition at line 108 of file thread_descriptor.pbzero.h.

◆ FieldMetadata_Tid

using perfetto::protos::pbzero::ThreadDescriptor::FieldMetadata_Tid = ::protozero::proto_utils::FieldMetadata< 2, ::protozero::proto_utils::RepetitionType::kNotRepeated, ::protozero::proto_utils::ProtoSchemaType::kInt32, int32_t, ThreadDescriptor>

Definition at line 83 of file thread_descriptor.pbzero.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int32_t
Enumerator
kPidFieldNumber 
kTidFieldNumber 
kThreadNameFieldNumber 

Definition at line 49 of file thread_descriptor.pbzero.h.

Member Function Documentation

◆ GetName()

static constexpr const char * perfetto::protos::pbzero::ThreadDescriptor::GetName ( )
inlinestaticconstexpr

Definition at line 54 of file thread_descriptor.pbzero.h.

54 {
55 return ".perfetto.protos.ThreadDescriptor";
56 }

◆ kPid()

static constexpr FieldMetadata_Pid perfetto::protos::pbzero::ThreadDescriptor::kPid ( )
inlinestaticconstexpr

Definition at line 72 of file thread_descriptor.pbzero.h.

72{ return {}; }

◆ kThreadName()

static constexpr FieldMetadata_ThreadName perfetto::protos::pbzero::ThreadDescriptor::kThreadName ( )
inlinestaticconstexpr

Definition at line 122 of file thread_descriptor.pbzero.h.

122{ return {}; }

◆ kTid()

static constexpr FieldMetadata_Tid perfetto::protos::pbzero::ThreadDescriptor::kTid ( )
inlinestaticconstexpr

Definition at line 97 of file thread_descriptor.pbzero.h.

97{ return {}; }

◆ set_pid()

void perfetto::protos::pbzero::ThreadDescriptor::set_pid ( int32_t  value)
inline

Definition at line 73 of file thread_descriptor.pbzero.h.

73 {
74 static constexpr uint32_t field_id = FieldMetadata_Pid::kFieldId;
75 // Call the appropriate protozero::Message::Append(field_id, ...)
76 // method based on the type of the field.
77 ::protozero::internal::FieldWriter<
78 ::protozero::proto_utils::ProtoSchemaType::kInt32>::Append(*this,
79 field_id,
80 value);
81 }

◆ set_thread_name() [1/3]

void perfetto::protos::pbzero::ThreadDescriptor::set_thread_name ( ::protozero::ConstChars  chars)
inline

Definition at line 126 of file thread_descriptor.pbzero.h.

126 {
127 AppendBytes(FieldMetadata_ThreadName::kFieldId, chars.data, chars.size);
128 }

◆ set_thread_name() [2/3]

void perfetto::protos::pbzero::ThreadDescriptor::set_thread_name ( const char *  data,
size_t  size 
)
inline

Definition at line 123 of file thread_descriptor.pbzero.h.

123 {
124 AppendBytes(FieldMetadata_ThreadName::kFieldId, data, size);
125 }

◆ set_thread_name() [3/3]

void perfetto::protos::pbzero::ThreadDescriptor::set_thread_name ( std::string  value)
inline

Definition at line 129 of file thread_descriptor.pbzero.h.

129 {
130 static constexpr uint32_t field_id = FieldMetadata_ThreadName::kFieldId;
131 // Call the appropriate protozero::Message::Append(field_id, ...)
132 // method based on the type of the field.
133 ::protozero::internal::FieldWriter<
134 ::protozero::proto_utils::ProtoSchemaType::kString>::Append(*this,
135 field_id,
136 value);
137 }

◆ set_tid()

void perfetto::protos::pbzero::ThreadDescriptor::set_tid ( int32_t  value)
inline

Definition at line 98 of file thread_descriptor.pbzero.h.

98 {
99 static constexpr uint32_t field_id = FieldMetadata_Tid::kFieldId;
100 // Call the appropriate protozero::Message::Append(field_id, ...)
101 // method based on the type of the field.
102 ::protozero::internal::FieldWriter<
103 ::protozero::proto_utils::ProtoSchemaType::kInt32>::Append(*this,
104 field_id,
105 value);
106 }

The documentation for this class was generated from the following file: