trace-encoder / com.squareup.tracing / TraceLogger

TraceLogger

interface TraceLogger

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

Create with TraceEncoder.createLogger.

Functions

Name Summary
log abstract fun log(eventBatch:List<TraceEvent>):Unit
Tags all events with the current timestamp and then enqueues them to be written to the trace file.abstract fun log(event:TraceEvent):Unit
Tags event with the current timestamp and then enqueues it to be written to the trace file.