TraceLogger

interface TraceLogger(source)

Logs TraceEvents to a TraceEncoder under a given process and thread name.

Create with TraceEncoder.createLogger.

Functions

Link copied to clipboard
abstract fun log(event: TraceEvent)

Tags event with the current timestamp and then enqueues it to be written to the trace file.

abstract fun log(eventBatch: List<TraceEvent>)

Tags all events with the current timestamp and then enqueues them to be written to the trace file.