TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
replay_log.hpp File Reference

Replay log (design doc 09 §2, decision D45): the viewer protocol's JSON messages, one per line, each with a leading "t" (seconds since the recording started). More...

#include <cstdint>
#include <cstdio>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

class  tmk::server::ReplayWriter
class  tmk::server::ReplayReader

Namespaces

namespace  tmk
namespace  tmk::server

Detailed Description

Replay log (design doc 09 §2, decision D45): the viewer protocol's JSON messages, one per line, each with a leading "t" (seconds since the recording started).

Written plain (.jsonl) or as a sequence of independent zstd frames (.zst, about 10-20x smaller). Each frame holds whole lines and the board snapshot (the keyframe) is a frame of its own, so a run that is killed loses at most the open frame, and any standard tool reads the log (zstd -dc run.jsonl.zst | jq).

Definition in file replay_log.hpp.