Package-level declarations

Types

Link copied to clipboard
@Serializable
object EndResponse

A dummy response object for the TracingDomain.end command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class GetCategoriesResponse(val categories: List<String>)

Response type for the TracingDomain.getCategories command.

Link copied to clipboard
typealias MemoryDumpConfig = JsonObject

Configuration for memory dump. Used only when "memory-infra" category is enabled.

Official doc

Link copied to clipboard

Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom

Link copied to clipboard
@Serializable
data class RecordClockSyncMarkerRequest(val syncId: String)

Request object containing input parameters for the TracingDomain.recordClockSyncMarker command.

Link copied to clipboard
@Serializable
object RecordClockSyncMarkerResponse

A dummy response object for the TracingDomain.recordClockSyncMarker command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RequestMemoryDumpRequest(val deterministic: Boolean? = null, val levelOfDetail: MemoryDumpLevelOfDetail? = null)

Request object containing input parameters for the TracingDomain.requestMemoryDump command.

Link copied to clipboard
@Serializable
data class RequestMemoryDumpResponse(val dumpGuid: String, val success: Boolean)

Response type for the TracingDomain.requestMemoryDump command.

Link copied to clipboard
@Serializable
data class StartRequest(val categories: String? = null, val options: String? = null, val bufferUsageReportingInterval: Double? = null, val transferMode: TransferMode? = null, val streamFormat: StreamFormat? = null, val streamCompression: StreamCompression? = null, val traceConfig: TraceConfig? = null, val perfettoConfig: String? = null, val tracingBackend: TracingBackend? = null)

Request object containing input parameters for the TracingDomain.start command.

Link copied to clipboard
@Serializable
object StartResponse

A dummy response object for the TracingDomain.start command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

Compression type to use for traces returned via streams.

Link copied to clipboard
@Serializable
enum StreamFormat : Enum<StreamFormat>

Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.

Link copied to clipboard
@Serializable
data class TraceConfig(val recordMode: TraceConfigRecordMode? = null, val traceBufferSizeInKb: Double? = null, val enableSampling: Boolean? = null, val enableSystrace: Boolean? = null, val enableArgumentFilter: Boolean? = null, val includedCategories: List<String>? = null, val excludedCategories: List<String>? = null, val syntheticDelays: List<String>? = null, val memoryDumpConfig: MemoryDumpConfig? = null)
Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
enum TracingBackend : Enum<TracingBackend>

Backend type to use for tracing. chrome uses the Chrome-integrated tracing service and is supported on all platforms. system is only supported on Chrome OS and uses the Perfetto system tracing service. auto chooses system when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses chrome.

Link copied to clipboard
Link copied to clipboard
@Serializable
enum TransferMode : Enum<TransferMode>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used: