Companion

Properties

Link copied to clipboard
val format: Json

The canonical JSON configuration for the animation trace format.

Link copied to clipboard
const val FORMAT_VERSION: Int = 1

The version of the .atf trace format. Written into the AnimationTraceHeader that begins every trace file so a renderer can reject or adapt to a file produced by a different format generation. Increment this whenever a change to the event hierarchy or the JSON encoding would break an existing renderer.

Functions

Link copied to clipboard

Parses one .atf record line back into a strongly-typed event.

Link copied to clipboard

Serializes event to a single-line JSON string (one .atf record).