package perfetto.protos

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AndroidBatteryMetric

perfetto_merged_metrics.proto:91

Used in: TraceMetrics

message AndroidBatteryMetric.BatteryAggregates

perfetto_merged_metrics.proto:102

Used in: AndroidBatteryMetric

message AndroidBatteryMetric.BatteryCounters

perfetto_merged_metrics.proto:92

Used in: AndroidBatteryMetric

message AndroidBatteryMetric.SuspendPeriod

perfetto_merged_metrics.proto:118

Period of time during the trace that the device went to sleep completely.

Used in: AndroidBatteryMetric

message AndroidBinderMetric

perfetto_merged_metrics.proto:138

This metric provides per-process Binder statistics for traces with binder_driver enabled Specifically, transactions are categorized and counted

Used in: TraceMetrics

message AndroidBinderMetric.PerProcessBreakdown

perfetto_merged_metrics.proto:139

Used in: AndroidBinderMetric

message AndroidCameraMetric

perfetto_merged_metrics.proto:152

Used in: TraceMetrics

message AndroidCameraMetric.Counter

perfetto_merged_metrics.proto:153

Used in: AndroidCameraMetric

message AndroidCameraUnaggregatedMetric

perfetto_merged_metrics.proto:179

Used in: TraceMetrics

message AndroidCameraUnaggregatedMetric.Value

perfetto_merged_metrics.proto:180

Used in: AndroidCameraUnaggregatedMetric

message AndroidCpuMetric

perfetto_merged_metrics.proto:205

Used in: TraceMetrics

message AndroidCpuMetric.CoreData

perfetto_merged_metrics.proto:223

Next id: 7

Used in: Process, Thread

message AndroidCpuMetric.CoreTypeData

perfetto_merged_metrics.proto:231

Next id: 3

Used in: Process, Thread

message AndroidCpuMetric.Metrics

perfetto_merged_metrics.proto:207

Next id: 6

Used in: CoreData, CoreTypeData, Process, Thread

message AndroidCpuMetric.Process

perfetto_merged_metrics.proto:249

Next id: 8

Used in: AndroidCpuMetric

message AndroidCpuMetric.Thread

perfetto_merged_metrics.proto:237

Next id: 7

Used in: Process

message AndroidDisplayMetrics

perfetto_merged_metrics.proto:268

Used in: TraceMetrics

message AndroidDisplayMetrics.RefreshRateStat

perfetto_merged_metrics.proto:282

Used in: AndroidDisplayMetrics

message AndroidDmaHeapMetric

perfetto_merged_metrics.proto:308

dma-buf heap memory stats on Android.

Used in: TraceMetrics

message AndroidDvfsMetric

perfetto_merged_metrics.proto:322

Used in: TraceMetrics

message AndroidDvfsMetric.BandStat

perfetto_merged_metrics.proto:324

Used in: FrequencyResidency

message AndroidDvfsMetric.FrequencyResidency

perfetto_merged_metrics.proto:335

Used in: AndroidDvfsMetric

message AndroidFastrpcMetric

perfetto_merged_metrics.proto:351

fastrpc memory stats on Android.

Used in: TraceMetrics

message AndroidFastrpcMetric.Subsystem

perfetto_merged_metrics.proto:352

Used in: AndroidFastrpcMetric

message AndroidFrameTimelineMetric

perfetto_merged_metrics.proto:52

Used in: TraceMetrics

message AndroidFrameTimelineMetric.ProcessBreakdown

perfetto_merged_metrics.proto:53

Used in: AndroidFrameTimelineMetric

message AndroidGpuMetric

perfetto_merged_metrics.proto:411

Used in: TraceMetrics

message AndroidGpuMetric.FrequencyMetric

perfetto_merged_metrics.proto:430

Used in: AndroidGpuMetric

message AndroidGpuMetric.FrequencyMetric.MetricsPerFrequency

perfetto_merged_metrics.proto:440

Used in: FrequencyMetric

message AndroidGpuMetric.Process

perfetto_merged_metrics.proto:412

Used in: AndroidGpuMetric

message AndroidHwcomposerMetrics

perfetto_merged_metrics.proto:464

Used in: TraceMetrics

message AndroidHwcomposerMetrics.DpuVoteMetrics

perfetto_merged_metrics.proto:506

Used in: AndroidHwcomposerMetrics

message AndroidHwuiMetric

perfetto_merged_metrics.proto:610

Used in: TraceMetrics

message AndroidIonMetric

perfetto_merged_metrics.proto:620

ion memory stats on Android.

Used in: TraceMetrics

message AndroidIonMetric.Buffer

perfetto_merged_metrics.proto:621

Used in: AndroidIonMetric

message AndroidIrqRuntimeMetric

perfetto_merged_metrics.proto:640

measure max IRQ runtime and IRQ tasks running over threshold.

Used in: TraceMetrics

message AndroidIrqRuntimeMetric.IrqRuntimeMetric

perfetto_merged_metrics.proto:657

Used in: AndroidIrqRuntimeMetric

message AndroidIrqRuntimeMetric.IrqSlice

perfetto_merged_metrics.proto:641

Used in: IrqRuntimeMetric

message AndroidIrqRuntimeMetric.ThresholdMetric

perfetto_merged_metrics.proto:649

Used in: IrqRuntimeMetric

message AndroidJankCujMetric

perfetto_merged_metrics.proto:678

Used in: TraceMetrics

message AndroidJankCujMetric.Cuj

perfetto_merged_metrics.proto:682

Next id: 11

Used in: AndroidJankCujMetric

message AndroidJankCujMetric.Frame

perfetto_merged_metrics.proto:717

Next id: 8

Used in: Cuj

message AndroidJankCujMetric.Metrics

perfetto_merged_metrics.proto:737

Next id: 12

Used in: Cuj

message AndroidLmkMetric

perfetto_merged_metrics.proto:863

LMK stats on Android.

Used in: TraceMetrics

message AndroidLmkMetric.ByOomScore

perfetto_merged_metrics.proto:864

Used in: AndroidLmkMetric

message AndroidLmkReasonMetric

perfetto_merged_metrics.proto:884

Global process state at LMK time, used to identify potential culprits. TODO: rename to AndroidLmkProcessState

Used in: TraceMetrics

message AndroidLmkReasonMetric.Lmk

perfetto_merged_metrics.proto:899

Used in: AndroidLmkReasonMetric

message AndroidLmkReasonMetric.Process

perfetto_merged_metrics.proto:885

Used in: Lmk

message AndroidMemoryMetric

perfetto_merged_metrics.proto:921

Memory metrics on Android.

Used in: TraceMetrics

message AndroidMemoryMetric.Counter

perfetto_merged_metrics.proto:943

Used in: ProcessMemoryCounters

message AndroidMemoryMetric.PriorityBreakdown

perfetto_merged_metrics.proto:928

Used in: ProcessMetrics

message AndroidMemoryMetric.ProcessMemoryCounters

perfetto_merged_metrics.proto:933

Used in: PriorityBreakdown, ProcessMetrics

message AndroidMemoryMetric.ProcessMetrics

perfetto_merged_metrics.proto:922

Used in: AndroidMemoryMetric

message AndroidMemoryUnaggregatedMetric

perfetto_merged_metrics.proto:962

Unaggregated memory metrics on Android.

Used in: TraceMetrics

message AndroidMemoryUnaggregatedMetric.ProcessMemoryValues

perfetto_merged_metrics.proto:968

Used in: ProcessValues

message AndroidMemoryUnaggregatedMetric.ProcessValues

perfetto_merged_metrics.proto:963

Used in: AndroidMemoryUnaggregatedMetric

message AndroidMemoryUnaggregatedMetric.Value

perfetto_merged_metrics.proto:975

Used in: ProcessMemoryValues

message AndroidMultiuserMetric

perfetto_merged_metrics.proto:990

Metrics for Multiuser events, such as switching users.

Used in: TraceMetrics

message AndroidMultiuserMetric.EventData

perfetto_merged_metrics.proto:993

Holds the data for a Multiuser event.

Used in: AndroidMultiuserMetric

message AndroidMultiuserMetric.EventData.CpuUsage

perfetto_merged_metrics.proto:998

CPU usage of each process during the event.

Used in: EventData

message AndroidNetworkMetric

perfetto_merged_metrics.proto:1021

Used in: TraceMetrics

message AndroidNetworkMetric.CoreNetRxActionStatistic

perfetto_merged_metrics.proto:1124

Used in: NetRxAction

message AndroidNetworkMetric.CoreNetTxActionStatistic

perfetto_merged_metrics.proto:1129

Used in: NetTxAction

message AndroidNetworkMetric.CorePacketStatistic

perfetto_merged_metrics.proto:1042

Used in: Rx, Tx

message AndroidNetworkMetric.IpiAction

perfetto_merged_metrics.proto:1153

Used in: AndroidNetworkMetric

message AndroidNetworkMetric.IpiActionStatistic

perfetto_merged_metrics.proto:1113

Used in: IpiAction

message AndroidNetworkMetric.NetDevice

perfetto_merged_metrics.proto:1066

Used in: AndroidNetworkMetric

message AndroidNetworkMetric.NetRxAction

perfetto_merged_metrics.proto:1134

Used in: AndroidNetworkMetric

message AndroidNetworkMetric.NetRxActionStatistic

perfetto_merged_metrics.proto:1077

Used in: CoreNetRxActionStatistic, NetRxAction

message AndroidNetworkMetric.NetTxAction

perfetto_merged_metrics.proto:1145

Used in: AndroidNetworkMetric

message AndroidNetworkMetric.NetTxActionStatistic

perfetto_merged_metrics.proto:1095

Used in: CoreNetTxActionStatistic, NetTxAction

message AndroidNetworkMetric.PacketStatistic

perfetto_merged_metrics.proto:1022

Used in: CorePacketStatistic, Rx, Tx

message AndroidNetworkMetric.Rx

perfetto_merged_metrics.proto:1047

Used in: NetDevice

message AndroidNetworkMetric.Tx

perfetto_merged_metrics.proto:1058

Used in: NetDevice

message AndroidOtherTracesMetric

perfetto_merged_metrics.proto:1182

Used in: TraceMetrics

message AndroidPackageList

perfetto_merged_metrics.proto:1192

Used in: TraceMetrics

message AndroidPackageList.Package

perfetto_merged_metrics.proto:1193

Used in: AndroidPackageList

message AndroidPowerRails

perfetto_merged_metrics.proto:1206

Used in: TraceMetrics

message AndroidPowerRails.EnergyData

perfetto_merged_metrics.proto:1208

Energy data per Power Rail at given ts.

Used in: PowerRails

message AndroidPowerRails.PowerRails

perfetto_merged_metrics.proto:1215

Used in: AndroidPowerRails

message AndroidProcessMetadata

perfetto_merged_metrics.proto:18

Used in: AndroidFrameTimelineMetric.ProcessBreakdown, AndroidJankCujMetric.Cuj, AndroidLmkReasonMetric.Process, AndroidStartupMetric.Startup, AndroidSysUiCujMetrics, JavaHeapHistogram.InstanceStats, JavaHeapStats.InstanceStats, ProfilerSmaps.Instance

message AndroidProcessMetadata.Package

perfetto_merged_metrics.proto:26

Package metadata from Android package list.

Used in: AndroidProcessMetadata

message AndroidRtRuntimeMetric

perfetto_merged_metrics.proto:1257

measure max RT runtime and RT tasks running over 5ms.

Used in: TraceMetrics

message AndroidRtRuntimeMetric.RtSlice

perfetto_merged_metrics.proto:1258

Used in: AndroidRtRuntimeMetric

message AndroidSimpleperfMetric

perfetto_merged_metrics.proto:1282

Metric that stores information related to atrace events generated by simpleperf tool

Used in: TraceMetrics

message AndroidSimpleperfMetric.PerfEventMetric

perfetto_merged_metrics.proto:1285

Used in: AndroidSimpleperfMetric

message AndroidSimpleperfMetric.PerfEventMetric.Process

perfetto_merged_metrics.proto:1300

Used in: PerfEventMetric

message AndroidSimpleperfMetric.PerfEventMetric.Thread

perfetto_merged_metrics.proto:1289

Used in: Process

message AndroidStartupMetric

perfetto_merged_metrics.proto:1326

Android app startup metrics.

Used in: TraceMetrics

message AndroidStartupMetric.Activity

perfetto_merged_metrics.proto:1435

Used in: Startup

message AndroidStartupMetric.BinderTransaction

perfetto_merged_metrics.proto:1444

Used in: Startup

message AndroidStartupMetric.EventTimestamps

perfetto_merged_metrics.proto:1474

Contains timestamps of important events which occurred during the startup.

Used in: Startup

message AndroidStartupMetric.HscMetrics

perfetto_merged_metrics.proto:1430

Metrics about startup which were developed by looking at experiments using high-speed cameras (HSC).

Used in: Startup

message AndroidStartupMetric.McyclesByCoreType

perfetto_merged_metrics.proto:1336

Used in: ToFirstFrame

message AndroidStartupMetric.OptimizationStatus

perfetto_merged_metrics.proto:1465

Metrics with information about the status of odex files and the outcome of the loading process. Multiple files might be loaded for a single startup. Platform might also decide to discard an odex file and instead load a fallback, for example in case the OS or apk were updated.

Used in: Startup

message AndroidStartupMetric.Slice

perfetto_merged_metrics.proto:1343

Used in: BinderTransaction, HscMetrics, Startup, ToFirstFrame

message AndroidStartupMetric.Startup

perfetto_merged_metrics.proto:1506

Next id: 18

Used in: AndroidStartupMetric

message AndroidStartupMetric.SystemState

perfetto_merged_metrics.proto:1481

Contains information about the state of a system during the app startup. Useful to put the startup in context.

Used in: Startup

message AndroidStartupMetric.TaskStateBreakdown

perfetto_merged_metrics.proto:1329

A simplified view of the task state durations for a thread and a span of time.

Used in: ToFirstFrame

message AndroidStartupMetric.ToFirstFrame

perfetto_merged_metrics.proto:1351

Timing information spanning the intent received by the activity manager to the first frame drawn. Next id: 33.

Used in: Startup

message AndroidSurfaceflingerMetric

perfetto_merged_metrics.proto:1577

Used in: TraceMetrics

message AndroidSysUiCujMetrics

perfetto_merged_metrics.proto:1621

Metric that stores frame information and potential jank root causes for a single Android system UI interaction/user journey.

Used in: TraceMetrics

message AndroidSysUiCujMetrics.Frame

perfetto_merged_metrics.proto:1632

Used in: AndroidSysUiCujMetrics

message AndroidTaskNames

perfetto_merged_metrics.proto:1649

Used in: TraceMetrics

message AndroidTaskNames.Process

perfetto_merged_metrics.proto:1650

Used in: AndroidTaskNames

message AndroidTraceQualityMetric

perfetto_merged_metrics.proto:1678

Metric which checks the data in the trace processor tables is "reasonble" (i.e. we would expect to see it from a real device). This is useful to reject traces which may be valid (so no stat would be recorded) but a human would find the trace nonsensical.

Used in: TraceMetrics

message AndroidTraceQualityMetric.Failure

perfetto_merged_metrics.proto:1679

Used in: AndroidTraceQualityMetric

message AndroidTrustyWorkqueues

perfetto_merged_metrics.proto:85

Metric used to generate a simplified view of the Trusty kworker events.

Used in: TraceMetrics

(message has no fields)

message AppendTraceDataResult

trace_processor.proto:134

Used in: TraceProcessorRpc

message ComputeMetricArgs

trace_processor.proto:226

Input for the /compute_metric endpoint.

Used in: TraceProcessorRpc

enum ComputeMetricArgs.ResultFormat

trace_processor.proto:227

Used in: ComputeMetricArgs

message ComputeMetricResult

trace_processor.proto:236

Output for the /compute_metric endpoint.

Used in: TraceProcessorRpc

message DescriptorProto

descriptor.proto:55

Describes a message type.

Used in: DescriptorSet, FileDescriptorProto

message DescriptorProto.ReservedRange

descriptor.proto:73

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

Used in: DescriptorProto

message DescriptorSet

trace_processor.proto:271

Convenience wrapper for multiple descriptors, similar to FileDescriptorSet in descriptor.proto.

Used in: TraceProcessorRpc

message DisableAndReadMetatraceArgs

trace_processor.proto:259

Input for the /disable_and_read_metatrace endpoint.

(message has no fields)

message DisableAndReadMetatraceResult

trace_processor.proto:262

Output for the /disable_and_read_metatrace endpoint.

Used in: TraceProcessorRpc

message EnableMetatraceArgs

trace_processor.proto:253

Input for the /enable_metatrace endpoint.

(message has no fields)

message EnableMetatraceResult

trace_processor.proto:256

Output for the /enable_metatrace endpoint.

(message has no fields)

message EnumDescriptorProto

descriptor.proto:172

Describes an enum type.

Used in: DescriptorProto, FileDescriptorProto

message EnumValueDescriptorProto

descriptor.proto:186

Describes a value within an enum.

Used in: EnumDescriptorProto

message FieldDescriptorProto

descriptor.proto:86

Describes a field within a message.

Used in: DescriptorProto, FileDescriptorProto

enum FieldDescriptorProto.Label

descriptor.proto:123

Used in: FieldDescriptorProto

enum FieldDescriptorProto.Type

descriptor.proto:87

Used in: FieldDescriptorProto

message FileDescriptorProto

descriptor.proto:29

Describes a complete .proto file.

Used in: FileDescriptorSet

message FileDescriptorSet

descriptor.proto:24

The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.

message G2dMetrics

perfetto_merged_metrics.proto:370

Used in: TraceMetrics

message G2dMetrics.G2dInstance

perfetto_merged_metrics.proto:371

Used in: G2dMetric

message G2dMetrics.G2dMetric

perfetto_merged_metrics.proto:385

Used in: G2dMetrics

message JavaHeapHistogram

perfetto_merged_metrics.proto:784

Used in: TraceMetrics

message JavaHeapHistogram.InstanceStats

perfetto_merged_metrics.proto:806

Heap stats per process. One sample per dump (with continuous dump you can have more samples differentiated by ts).

Used in: JavaHeapHistogram

message JavaHeapHistogram.Sample

perfetto_merged_metrics.proto:799

Used in: InstanceStats

message JavaHeapHistogram.TypeCount

perfetto_merged_metrics.proto:786

Next id: 9

Used in: Sample

message JavaHeapStats

perfetto_merged_metrics.proto:819

Used in: TraceMetrics

message JavaHeapStats.HeapRoots

perfetto_merged_metrics.proto:820

Used in: Sample

message JavaHeapStats.InstanceStats

perfetto_merged_metrics.proto:849

Heap stats per process. One sample per dump (can be > 1 if continuous dump is enabled).

Used in: JavaHeapStats

message JavaHeapStats.Sample

perfetto_merged_metrics.proto:827

Next id: 10

Used in: InstanceStats

message OneofDescriptorProto

descriptor.proto:166

Describes a oneof.

Used in: DescriptorProto

message OneofOptions

descriptor.proto:193

Used in: OneofDescriptorProto

(message has no fields)

message ProcessRenderInfo

perfetto_merged_metrics.proto:532

Android HWUI graphics performance and graphics memory usage metrics.

Used in: AndroidHwuiMetric

message ProfilerSmaps

perfetto_merged_metrics.proto:1236

Used in: TraceMetrics

message ProfilerSmaps.Instance

perfetto_merged_metrics.proto:1244

Used in: ProfilerSmaps

message ProfilerSmaps.Mapping

perfetto_merged_metrics.proto:1237

Used in: Instance

message QueryArgs

trace_processor.proto:139

Used in: TraceProcessorRpc

message QueryResult

trace_processor.proto:155

Output for the /query endpoint. Returns a query result set, grouping cells into batches. Batching allows a more efficient encoding of results, at the same time allowing to return O(M) results in a pipelined fashion, without full-memory buffering. Batches are split when either a large number of cells (~thousands) is reached or the string/blob payload becomes too large (~hundreds of KB). Data is batched in cells, scanning results by row -> column. e.g. if a query returns 3 columns and 2 rows, the cells will be emitted in this order: R0C0, R0C1, R0C2, R1C0, R1C1, R1C2.

Used in: TraceProcessorRpc

message QueryResult.CellsBatch

trace_processor.proto:169

A batch contains an array of cell headers, stating the type of each cell. The payload of each cell is stored in the corresponding xxx_cells field below (unless the cell is NULL). So if |cells| contains: [VARINT, FLOAT64, VARINT, STRING], the results will be available as: [varint_cells[0], float64_cells[0], varint_cells[1], string_cells[0]].

Used in: QueryResult

enum QueryResult.CellsBatch.CellType

trace_processor.proto:170

Used in: CellsBatch

message StatusArgs

trace_processor.proto:206

Input for the /status endpoint.

(message has no fields)

message StatusResult

trace_processor.proto:209

Output for the /status endpoint.

Used in: TraceProcessorRpc

message TraceAnalysisStats

perfetto_merged_metrics.proto:1726

Stats counters for the trace. Defined in src/trace_processor/storage/stats.h

Used in: TraceMetrics

enum TraceAnalysisStats.Severity

perfetto_merged_metrics.proto:1727

Used in: Stat

enum TraceAnalysisStats.Source

perfetto_merged_metrics.proto:1734

Used in: Stat

message TraceAnalysisStats.Stat

perfetto_merged_metrics.proto:1740

Used in: TraceAnalysisStats

message TraceMetadata

perfetto_merged_metrics.proto:1711

Trace processor metadata

Used in: TraceMetrics

message TraceMetrics

perfetto_merged_metrics.proto:1755

Root message for all Perfetto-based metrics. Next id: 49

enum TraceProcessorApiVersion

trace_processor.proto:38

message TraceProcessorRpc

trace_processor.proto:57

Used in: TraceProcessorRpcStream

enum TraceProcessorRpc.TraceProcessorMethod

trace_processor.proto:71

Used in: TraceProcessorRpc

message TraceProcessorRpcStream

trace_processor.proto:53

message UnsymbolizedFrames

perfetto_merged_metrics.proto:1689

Used in: TraceMetrics

message UnsymbolizedFrames.Frame

perfetto_merged_metrics.proto:1690

Used in: UnsymbolizedFrames