Module protos

Source

Modules§

android_input_event_config
Nested message and enum types in AndroidInputEventConfig.
android_power_config
Nested message and enum types in AndroidPowerConfig.
chrome_config
Nested message and enum types in ChromeConfig.
chromium_histogram_samples_config
Nested message and enum types in ChromiumHistogramSamplesConfig.
clone_session_request
Nested message and enum types in CloneSessionRequest.
commit_data_request
Nested message and enum types in CommitDataRequest.
console_config
Nested message and enum types in ConsoleConfig.
data_source_config
Nested message and enum types in DataSourceConfig.
enable_tracing_response
Nested message and enum types in EnableTracingResponse.
etw_config
Nested message and enum types in EtwConfig.
follower_event
Nested message and enum types in FollowerEvent.
ftrace_config
Nested message and enum types in FtraceConfig.
ftrace_descriptor
Nested message and enum types in FtraceDescriptor.
get_async_command_response
Nested message and enum types in GetAsyncCommandResponse.
gpu_counter_descriptor
Nested message and enum types in GpuCounterDescriptor.
heapprofd_config
Nested message and enum types in HeapprofdConfig.
initialize_connection_request
Nested message and enum types in InitializeConnectionRequest.
inode_file_config
Nested message and enum types in InodeFileConfig.
ipc_frame
Nested message and enum types in IPCFrame.
java_hprof_config
Nested message and enum types in JavaHprofConfig.
observable_events
Nested message and enum types in ObservableEvents.
perf_event_config
Nested message and enum types in PerfEventConfig.
perf_events
Nested message and enum types in PerfEvents.
pixel_modem_config
Nested message and enum types in PixelModemConfig.
process_stats_config
Nested message and enum types in ProcessStatsConfig.
proto_log_config
Nested message and enum types in ProtoLogConfig.
read_buffers_response
Nested message and enum types in ReadBuffersResponse.
surface_flinger_layers_config
Nested message and enum types in SurfaceFlingerLayersConfig.
surface_flinger_transactions_config
Nested message and enum types in SurfaceFlingerTransactionsConfig.
sys_stats_config
Nested message and enum types in SysStatsConfig.
test_config
Nested message and enum types in TestConfig.
trace_config
Nested message and enum types in TraceConfig.
trace_stats
Nested message and enum types in TraceStats.
tracing_service_state
Nested message and enum types in TracingServiceState.
window_manager_config
Nested message and enum types in WindowManagerConfig.

Structs§

ActivateTriggersRequest
ActivateTriggersResponse
AndroidGameInterventionListConfig
Data source that lists game modes and game interventions of games on an Android device.
AndroidInputEventConfig
Custom configuration for the “android.input.inputevent” data source.
AndroidLogConfig
AndroidPolledStateConfig
Data source that polls for display state. This should only be used for backward-compatibility; AndroidSystemPropertyConfig should be preferred.
AndroidPowerConfig
AndroidSdkSyspropGuardConfig
Data source that controls the system properties used to guard initialization of track_event producers (i.e. Skia) in apps using HWUI, and certain processes like SurfaceFlinger.
AndroidSystemPropertyConfig
Data source that polls for system properties.
AppWakelocksConfig
Configuration for the android.app_wakelocks data source.
AttachRequest
Arguments for rpc Attach.
AttachResponse
ChangeTraceConfigRequest
Arguments for rpc ChangeTraceConfig().
ChangeTraceConfigResponse
ChromeConfig
ChromiumHistogramSamplesConfig
ChromiumSystemMetricsConfig
CloneSessionRequest
Arguments for rpc CloneSession.
CloneSessionResponse
CommitDataRequest
CommitDataResponse
ConsoleConfig
DataSourceConfig
The configuration that is passed to each data source when starting tracing. Next id: 136
DataSourceDescriptor
This message is sent from Producer(s) to the tracing Service when registering to advertise their capabilities. It describes the structure of tracing protos that will be produced by the data source and the supported filters.
DetachRequest
Arguments for rpc Detach
DetachResponse
DisableTracingRequest
Arguments for rpc DisableTracing().
DisableTracingResponse
EnableTracingRequest
Arguments for rpc EnableTracing().
EnableTracingResponse
EtwConfig
Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition See: https://learn.microsoft.com/en-us/windows/win32/api/evntrace/ ns-evntrace-event_trace_properties
FlushRequest
Arguments for rpc Flush().
FlushResponse
FollowerEvent
Additional events associated with a leader. Configuration is similar to Timebase event. Because data acquisition is driven by the leader there is no option to configure the clock or the frequency.
FreeBuffersRequest
Arguments for rpc FreeBuffers().
FreeBuffersResponse
FtraceConfig
Next id: 31
FtraceDescriptor
GetAsyncCommandRequest
GetAsyncCommandResponse
GetTraceStatsRequest
GetTraceStatsResponse
GpuCounterConfig
GpuCounterDescriptor
Description of GPU counters. This message is sent by a GPU counter producer to specify the counters available in the hardware.
GpuRenderStagesConfig
HeapprofdConfig
Configuration for go/heapprofd. Next id: 28
InitializeConnectionRequest
Arguments for rpc InitializeConnection().
InitializeConnectionResponse
InodeFileConfig
InterceptorConfig
Configuration for trace packet interception. Used for diverting trace data to non-Perfetto sources (e.g., logging to the console, ETW) when using the Perfetto SDK.
IpcFrame
JavaHprofConfig
Configuration for managed app heap graph snapshots.
KernelWakelocksConfig
Data source that records kernel (and native) wakelock data.
NetworkPacketTraceConfig
Network tracing data source that records details on all packets sent or received by the network.
NotifyDataSourceStartedRequest
NotifyDataSourceStartedResponse
NotifyDataSourceStoppedRequest
NotifyDataSourceStoppedResponse
ObservableEvents
ObserveEventsRequest
To stop observing events of a certain type, send a request with the remaining types. To stop observing completely, send an empty request.
ObserveEventsResponse
PackagesListConfig
Data source that lists details (such as version code) about packages on an Android device.
PerfEventConfig
Configuration for the traced_perf profiler.
PerfEvents
PixelModemConfig
Data source that records events from the modem.
ProcessStatsConfig
ProtoLogConfig
Custom configuration for the “android.protolog” data source. ProtoLog is a logging mechanism that is intented to be more efficient than logcat. This configures what logs to capture in the tracing instance.
ProtoLogGroup
QueryCapabilitiesRequest
Arguments for rpc QueryCapabilities.
QueryCapabilitiesResponse
QueryServiceStateRequest
Arguments for rpc QueryServiceState.
QueryServiceStateResponse
ReadBuffersRequest
Arguments for rpc ReadBuffers().
ReadBuffersResponse
TODO: uint32 buffer_id = 1;
RegisterDataSourceRequest
RegisterDataSourceResponse
RegisterTraceWriterRequest
RegisterTraceWriterResponse
SaveTraceForBugreportRequest
Arguments for rpc SaveTraceForBugreport.
SaveTraceForBugreportResponse
This response is sent only after the trace was saved into file (if succeeded) or something failed.
StartTracingRequest
Arguments for rpc StartTracing().
StartTracingResponse
StatsdPullAtomConfig
StatsdTracingConfig
This file is named ‘statsd_tracing_config.proto’ rather than ‘statsd_config.proto’ (which would be more consistent with the other config protos) so it doesn’t show up and confuse folks looking for the existing statsd_config.proto for configuring statsd itself. Same for the config proto itself.
SurfaceFlingerLayersConfig
Custom configuration for the “android.surfaceflinger.layers” data source.
SurfaceFlingerTransactionsConfig
Custom configuration for the “android.surfaceflinger.transactions” data source.
SyncRequest
Arguments for rpc Sync().
SyncResponse
SysStatsConfig
This file defines the configuration for the Linux /proc poller data source, which injects counters in the trace. Counters that are needed in the trace must be explicitly listed in the _counters fields. This is to avoid spamming the trace with all counters at all times. The sampling rate is configurable. All polling rates (_period_ms) need to be integer multiples of each other. OK: [10ms, 10ms, 10ms], [10ms, 20ms, 10ms], [10ms, 20ms, 60ms] Not OK: [10ms, 10ms, 11ms], [10ms, 15ms, 20ms]
SystemInfoConfig
This data-source does a one-off recording of system information when the trace starts. Currently this includes:
TestConfig
The configuration for a fake producer used in tests.
TraceConfig
The overall config that is used when starting a new tracing session through ProducerPort::StartTracing(). It contains the general config for the logging buffer(s) and the configs for all the data source being enabled.
TraceStats
Statistics for the internals of the tracing service.
TracingServiceCapabilities
TracingServiceState
Reports the state of the tracing service. Used to gather details about the data sources connected. See ConsumerPort::QueryServiceState().
TrackEventCategory
TrackEventConfig
The following fields define the set of enabled trace categories. Each list item is a glob.
TrackEventDescriptor
UnregisterDataSourceRequest
UnregisterDataSourceResponse
UnregisterTraceWriterRequest
UnregisterTraceWriterResponse
UpdateDataSourceRequest
UpdateDataSourceResponse
V8Config
VulkanMemoryConfig
WindowManagerConfig
Custom configuration for the “android.windowmanager” data source.

Enums§

AndroidLogId
Values from NDK’s android/log.h.
AndroidLogPriority
AtomId
This enum is obtained by post-processing AOSP/frameworks/proto_logging/stats/atoms.proto through AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one enum value for each proto field defined in the upstream atoms.proto.
BuiltinClock
MeminfoCounters
Counter definitions for Linux’s /proc/meminfo.
ProtoLogLevel
VmstatCounters
Counter definitions for Linux’s /proc/vmstat.