Tracing

sealed external interface Tracing(source)

The Tracing object is used to enable or disable tracing for sets of categories. Instances are created using the trace_events.createTracing() method.

When created, the Tracing object is disabled. Calling the tracing.enable() method adds the categories to the set of enabled trace event categories. Calling tracing.disable() will remove the categories from the set of enabled trace event categories.

Properties

Link copied to clipboard
abstract val categories: String

A comma-separated list of the trace event categories covered by this Tracing object.

Link copied to clipboard
abstract val enabled: Boolean

true only if the Tracing object has been enabled.

Functions

Link copied to clipboard
abstract fun disable()

Disables this Tracing object.

Link copied to clipboard
abstract fun enable()

Enables this Tracing object for the set of categories covered by the Tracing object.