Expand description
Render trace + time-travel capture for ftui TUI (bead 2noh9.4.3).
Records frame snapshots, event streams, and render timing so that TUI bugs can be reproduced from a trace bundle without rerunning on the original machine.
§Formats
- Render trace (
.trace.jsonl): one JSON object per frame with timing, size, message that triggered the render, and optional text snapshot. - Event stream (
.events.jsonl): one JSON object perCassMsgwith timestamp and serialized variant tag. - Trace bundle (directory): render trace + event stream +
tui_state.jsonsystem_info.json.
Structs§
- Event
Record - One event’s metadata.
- Frame
Record - One frame’s render metadata.
- System
Info - System information snapshot for trace bundles.
- Trace
Options - Options controlling trace capture, parsed from CLI flags.
- Trace
Writer - Appends frame and event records to JSONL files.
Functions§
- read_
event_ stream - Read a JSONL event stream file and return parsed records.
- read_
render_ trace - Read a JSONL render trace file and return parsed records.
- write_
trace_ bundle - Write a complete trace bundle directory containing: