proto

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrackEvent_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_SLICE_BEGIN",
		2: "TYPE_SLICE_END",
		3: "TYPE_INSTANT",
	}
	TrackEvent_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_SLICE_BEGIN": 1,
		"TYPE_SLICE_END":   2,
		"TYPE_INSTANT":     3,
	}
)

Enum value maps for TrackEvent_Type.

View Source
var File_perfetto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DebugAnnotation

type DebugAnnotation struct {

	// Name of the annotation (for dictionary entries)
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// Value - use one of these fields
	//
	// Types that are valid to be assigned to Value:
	//
	//	*DebugAnnotation_BoolValue
	//	*DebugAnnotation_UintValue
	//	*DebugAnnotation_IntValue
	//	*DebugAnnotation_DoubleValue
	//	*DebugAnnotation_StringValue
	//	*DebugAnnotation_PointerValue
	Value isDebugAnnotation_Value `protobuf_oneof:"value"`
	// Nested structures
	DictEntries []*DebugAnnotation `protobuf:"bytes,11,rep,name=dict_entries,json=dictEntries,proto3" json:"dict_entries,omitempty"`
	ArrayValues []*DebugAnnotation `protobuf:"bytes,12,rep,name=array_values,json=arrayValues,proto3" json:"array_values,omitempty"`
	// contains filtered or unexported fields
}

Debug annotation for key-value metadata See: https://perfetto.dev/docs/reference/trace-packet-proto

func (*DebugAnnotation) Descriptor deprecated

func (*DebugAnnotation) Descriptor() ([]byte, []int)

Deprecated: Use DebugAnnotation.ProtoReflect.Descriptor instead.

func (*DebugAnnotation) GetArrayValues

func (x *DebugAnnotation) GetArrayValues() []*DebugAnnotation

func (*DebugAnnotation) GetBoolValue

func (x *DebugAnnotation) GetBoolValue() bool

func (*DebugAnnotation) GetDictEntries

func (x *DebugAnnotation) GetDictEntries() []*DebugAnnotation

func (*DebugAnnotation) GetDoubleValue

func (x *DebugAnnotation) GetDoubleValue() float64

func (*DebugAnnotation) GetIntValue

func (x *DebugAnnotation) GetIntValue() int64

func (*DebugAnnotation) GetName

func (x *DebugAnnotation) GetName() string

func (*DebugAnnotation) GetPointerValue

func (x *DebugAnnotation) GetPointerValue() uint64

func (*DebugAnnotation) GetStringValue

func (x *DebugAnnotation) GetStringValue() string

func (*DebugAnnotation) GetUintValue

func (x *DebugAnnotation) GetUintValue() uint64

func (*DebugAnnotation) GetValue

func (x *DebugAnnotation) GetValue() isDebugAnnotation_Value

func (*DebugAnnotation) ProtoMessage

func (*DebugAnnotation) ProtoMessage()

func (*DebugAnnotation) ProtoReflect

func (x *DebugAnnotation) ProtoReflect() protoreflect.Message

func (*DebugAnnotation) Reset

func (x *DebugAnnotation) Reset()

func (*DebugAnnotation) String

func (x *DebugAnnotation) String() string

type DebugAnnotation_BoolValue

type DebugAnnotation_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type DebugAnnotation_DoubleValue

type DebugAnnotation_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type DebugAnnotation_IntValue

type DebugAnnotation_IntValue struct {
	IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
}

type DebugAnnotation_PointerValue

type DebugAnnotation_PointerValue struct {
	PointerValue uint64 `protobuf:"varint,7,opt,name=pointer_value,json=pointerValue,proto3,oneof"`
}

type DebugAnnotation_StringValue

type DebugAnnotation_StringValue struct {
	StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type DebugAnnotation_UintValue

type DebugAnnotation_UintValue struct {
	UintValue uint64 `protobuf:"varint,3,opt,name=uint_value,json=uintValue,proto3,oneof"`
}

type ProcessDescriptor

type ProcessDescriptor struct {
	Pid         int32  `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	ProcessName string `protobuf:"bytes,6,opt,name=process_name,json=processName,proto3" json:"process_name,omitempty"`
	// contains filtered or unexported fields
}

Process descriptor

func (*ProcessDescriptor) Descriptor deprecated

func (*ProcessDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use ProcessDescriptor.ProtoReflect.Descriptor instead.

func (*ProcessDescriptor) GetPid

func (x *ProcessDescriptor) GetPid() int32

func (*ProcessDescriptor) GetProcessName

func (x *ProcessDescriptor) GetProcessName() string

func (*ProcessDescriptor) ProtoMessage

func (*ProcessDescriptor) ProtoMessage()

func (*ProcessDescriptor) ProtoReflect

func (x *ProcessDescriptor) ProtoReflect() protoreflect.Message

func (*ProcessDescriptor) Reset

func (x *ProcessDescriptor) Reset()

func (*ProcessDescriptor) String

func (x *ProcessDescriptor) String() string

type ThreadDescriptor

type ThreadDescriptor struct {
	Pid        int32  `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Tid        int32  `protobuf:"varint,2,opt,name=tid,proto3" json:"tid,omitempty"`
	ThreadName string `protobuf:"bytes,5,opt,name=thread_name,json=threadName,proto3" json:"thread_name,omitempty"`
	// contains filtered or unexported fields
}

Thread descriptor

func (*ThreadDescriptor) Descriptor deprecated

func (*ThreadDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use ThreadDescriptor.ProtoReflect.Descriptor instead.

func (*ThreadDescriptor) GetPid

func (x *ThreadDescriptor) GetPid() int32

func (*ThreadDescriptor) GetThreadName

func (x *ThreadDescriptor) GetThreadName() string

func (*ThreadDescriptor) GetTid

func (x *ThreadDescriptor) GetTid() int32

func (*ThreadDescriptor) ProtoMessage

func (*ThreadDescriptor) ProtoMessage()

func (*ThreadDescriptor) ProtoReflect

func (x *ThreadDescriptor) ProtoReflect() protoreflect.Message

func (*ThreadDescriptor) Reset

func (x *ThreadDescriptor) Reset()

func (*ThreadDescriptor) String

func (x *ThreadDescriptor) String() string

type Trace

type Trace struct {
	Packet []*TracePacket `protobuf:"bytes,1,rep,name=packet,proto3" json:"packet,omitempty"`
	// contains filtered or unexported fields
}

Top-level trace container

func (*Trace) Descriptor deprecated

func (*Trace) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetPacket

func (x *Trace) GetPacket() []*TracePacket

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

func (x *Trace) ProtoReflect() protoreflect.Message

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

type TracePacket

type TracePacket struct {

	// Timestamp in nanoseconds
	Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Sequence ID for ordering
	TrustedPacketSequenceId uint32 `` /* 136-byte string literal not displayed */
	// Types that are valid to be assigned to Data:
	//
	//	*TracePacket_TrackDescriptor
	//	*TracePacket_TrackEvent
	Data isTracePacket_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

A single trace packet

func (*TracePacket) Descriptor deprecated

func (*TracePacket) Descriptor() ([]byte, []int)

Deprecated: Use TracePacket.ProtoReflect.Descriptor instead.

func (*TracePacket) GetData

func (x *TracePacket) GetData() isTracePacket_Data

func (*TracePacket) GetTimestamp

func (x *TracePacket) GetTimestamp() uint64

func (*TracePacket) GetTrackDescriptor

func (x *TracePacket) GetTrackDescriptor() *TrackDescriptor

func (*TracePacket) GetTrackEvent

func (x *TracePacket) GetTrackEvent() *TrackEvent

func (*TracePacket) GetTrustedPacketSequenceId

func (x *TracePacket) GetTrustedPacketSequenceId() uint32

func (*TracePacket) ProtoMessage

func (*TracePacket) ProtoMessage()

func (*TracePacket) ProtoReflect

func (x *TracePacket) ProtoReflect() protoreflect.Message

func (*TracePacket) Reset

func (x *TracePacket) Reset()

func (*TracePacket) String

func (x *TracePacket) String() string

type TracePacket_TrackDescriptor

type TracePacket_TrackDescriptor struct {
	TrackDescriptor *TrackDescriptor `protobuf:"bytes,60,opt,name=track_descriptor,json=trackDescriptor,proto3,oneof"`
}

type TracePacket_TrackEvent

type TracePacket_TrackEvent struct {
	TrackEvent *TrackEvent `protobuf:"bytes,11,opt,name=track_event,json=trackEvent,proto3,oneof"`
}

type TrackDescriptor

type TrackDescriptor struct {
	Uuid       uint64             `protobuf:"varint,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name       string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Process    *ProcessDescriptor `protobuf:"bytes,3,opt,name=process,proto3" json:"process,omitempty"`
	Thread     *ThreadDescriptor  `protobuf:"bytes,4,opt,name=thread,proto3" json:"thread,omitempty"`
	ParentUuid uint64             `protobuf:"varint,5,opt,name=parent_uuid,json=parentUuid,proto3" json:"parent_uuid,omitempty"`
	// contains filtered or unexported fields
}

Describes a track (process, thread, or custom)

func (*TrackDescriptor) Descriptor deprecated

func (*TrackDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use TrackDescriptor.ProtoReflect.Descriptor instead.

func (*TrackDescriptor) GetName

func (x *TrackDescriptor) GetName() string

func (*TrackDescriptor) GetParentUuid

func (x *TrackDescriptor) GetParentUuid() uint64

func (*TrackDescriptor) GetProcess

func (x *TrackDescriptor) GetProcess() *ProcessDescriptor

func (*TrackDescriptor) GetThread

func (x *TrackDescriptor) GetThread() *ThreadDescriptor

func (*TrackDescriptor) GetUuid

func (x *TrackDescriptor) GetUuid() uint64

func (*TrackDescriptor) ProtoMessage

func (*TrackDescriptor) ProtoMessage()

func (*TrackDescriptor) ProtoReflect

func (x *TrackDescriptor) ProtoReflect() protoreflect.Message

func (*TrackDescriptor) Reset

func (x *TrackDescriptor) Reset()

func (*TrackDescriptor) String

func (x *TrackDescriptor) String() string

type TrackEvent

type TrackEvent struct {

	// Categories for filtering
	Categories []string `protobuf:"bytes,22,rep,name=categories,proto3" json:"categories,omitempty"`
	// Event name
	Name string `protobuf:"bytes,23,opt,name=name,proto3" json:"name,omitempty"`
	// Event type
	Type TrackEvent_Type `protobuf:"varint,9,opt,name=type,proto3,enum=perfetto.protos.TrackEvent_Type" json:"type,omitempty"`
	// Track this event belongs to
	TrackUuid uint64 `protobuf:"varint,11,opt,name=track_uuid,json=trackUuid,proto3" json:"track_uuid,omitempty"`
	// Debug annotations (key-value metadata)
	DebugAnnotations []*DebugAnnotation `protobuf:"bytes,4,rep,name=debug_annotations,json=debugAnnotations,proto3" json:"debug_annotations,omitempty"`
	// contains filtered or unexported fields
}

A trace event on a track

func (*TrackEvent) Descriptor deprecated

func (*TrackEvent) Descriptor() ([]byte, []int)

Deprecated: Use TrackEvent.ProtoReflect.Descriptor instead.

func (*TrackEvent) GetCategories

func (x *TrackEvent) GetCategories() []string

func (*TrackEvent) GetDebugAnnotations

func (x *TrackEvent) GetDebugAnnotations() []*DebugAnnotation

func (*TrackEvent) GetName

func (x *TrackEvent) GetName() string

func (*TrackEvent) GetTrackUuid

func (x *TrackEvent) GetTrackUuid() uint64

func (*TrackEvent) GetType

func (x *TrackEvent) GetType() TrackEvent_Type

func (*TrackEvent) ProtoMessage

func (*TrackEvent) ProtoMessage()

func (*TrackEvent) ProtoReflect

func (x *TrackEvent) ProtoReflect() protoreflect.Message

func (*TrackEvent) Reset

func (x *TrackEvent) Reset()

func (*TrackEvent) String

func (x *TrackEvent) String() string

type TrackEvent_Type

type TrackEvent_Type int32
const (
	TrackEvent_TYPE_UNSPECIFIED TrackEvent_Type = 0
	TrackEvent_TYPE_SLICE_BEGIN TrackEvent_Type = 1
	TrackEvent_TYPE_SLICE_END   TrackEvent_Type = 2
	TrackEvent_TYPE_INSTANT     TrackEvent_Type = 3
)

func (TrackEvent_Type) Descriptor

func (TrackEvent_Type) Enum

func (x TrackEvent_Type) Enum() *TrackEvent_Type

func (TrackEvent_Type) EnumDescriptor deprecated

func (TrackEvent_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrackEvent_Type.Descriptor instead.

func (TrackEvent_Type) Number

func (TrackEvent_Type) String

func (x TrackEvent_Type) String() string

func (TrackEvent_Type) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL