TracingBackend

@Serializable(with = TracingBackendSerializer::class)
sealed interface 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.

Official doc

Inheritors

Types

Link copied to clipboard
@Serializable(with = TracingBackendSerializer::class)
data object auto : TracingBackend
Link copied to clipboard
@Serializable(with = TracingBackendSerializer::class)
data object chrome : TracingBackend
Link copied to clipboard
@Serializable(with = TracingBackendSerializer::class)
data class NotDefinedInProtocol(val value: String) : TracingBackend

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard
@Serializable(with = TracingBackendSerializer::class)
data object system : TracingBackend