TraceFileReader

Reads a JSON Lines (.atf) trace produced by JsonLinesAnimationOutput: readHeader consumes the first line; events streams the remaining lines as AnimationEvents lazily, so a large trace is never fully held in memory.

The reader is positional: call readHeader first, then iterate events. It is Closeable; wrap it in use { } or call close.

Constructors

Link copied to clipboard
constructor(reader: BufferedReader)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard

A lazy sequence over the remaining event lines. Blank lines are skipped. Because it reads from the shared reader, consume it after readHeader and before close.

Link copied to clipboard

Reads and decodes the header line. Call this once, before events.