TraceDriver



The entry point for the tracing API.

Summary

Public constructors

TraceDriver(sink: TraceSink, isEnabled: Boolean)

Builds an instance of TraceDriver using the provided TraceSink if isEnabled is true.

Cmn

Public functions

open Unit

Flushes all outstanding packets to the TraceSink and then closes the TraceSink.

Cmn
open Unit

Flushes the trace packets into the underlying TraceSink.

Cmn

Public properties

open Tracer

Return an instance of a Tracer that can be used to emit trace events.

Cmn

Public constructors

TraceDriver

TraceDriver(sink: TraceSink, isEnabled: Boolean)

Builds an instance of TraceDriver using the provided TraceSink if isEnabled is true. Otherwise, you get an instance of a no-op TraceDriver.

Public functions

close

open fun close(): Unit

Flushes all outstanding packets to the TraceSink and then closes the TraceSink.

flush

open fun flush(): Unit

Flushes the trace packets into the underlying TraceSink.

Public properties

tracer

open val tracerTracer

Return an instance of a Tracer that can be used to emit trace events.