Skip to main content

Module input_log

Module input_log 

Source
Expand description

Input log: record what a host fed a BufferController and replay it offline.

A log is plain text, one row per call, header Input::CSV_HEADER (kind,now_us,a,b). The first rows after the header describe the controller (config rows, one per ControllerConfig field, and a seed row when a stall-memory seed was used); the remaining rows are the Inputs in call order:

kindab
chunkbyteslast PCR, 27 MHz, or empty
mediatrack keymedia end, 27 MHz
tick1 with a position, 0 withoutplayback position, 27 MHz, or empty
register, unregistertrack keyempty
hintHint::name tokenempty
config (now_us 0)ConfigKey::name tokenvalue (true/false for flags)
seed (now_us 0)peak, microsecondsage, microseconds

InputLog::replay feeds the inputs through one fresh controller built from the recorded configuration, so the same log gives the same decisions on any host. Logs recorded before config rows existed parse with InputLog::parse_with_config.

Structs§

InputLog
A complete, self-describing input log: the controller configuration, the optional stall-memory seed, and the inputs in call order.
InputLogError
A log row that could not be read.

Enums§

ConfigKey
A ControllerConfig field as it appears in a config row.
Input
One call a host made into a BufferController.
Reason
Why a log row or log failed to parse or replay.