TraceSlice

data class TraceSlice(val snapshot: List<TraceRecord>, val rollback: () -> Unit)

Immutable view of a drained trace buffer together with a rollback action.

Constructors

Link copied to clipboard
constructor(snapshot: List<TraceRecord>, rollback: () -> Unit)

Properties

Link copied to clipboard
val rollback: () -> Unit

Restores the snapshot to the head of the originating buffer.

Link copied to clipboard

The list of entries captured at the time of Tracer.take.