Expand description
Simulation logging, telemetry, and replay utilities.
Provides structured logging of per-step simulation data (energy, timing, body counts), filtering, compression, metrics, snapshotting, and a ring-buffer streaming log.
Structs§
- Delta
Timestamps - Delta-encoded timestamp sequence (stores differences between consecutive values rather than absolute values).
- Energy
Monitor - Tracks kinetic and potential energy; detects anomalous jumps.
- LogCompression
- Compression statistics for a log field.
- LogFilter
- Filters a slice of
SimLogEntryby time range or custom field predicates. - Performance
Log - Accumulates per-step timing data.
- Replay
Log - Reads back a log and supports time-series reconstruction and interpolation.
- RleRun
- Run-length encoded representation of a sequence of f64 values.
- SimLog
Entry - A single logged snapshot of simulation state at one timestep.
- SimLogger
- Append-only simulation logger with CSV and JSON serialisation.
- SimMetrics
- Computes statistical summaries over a named field in a log.
- SimSnapshot
- A full serialisable snapshot of the simulation state.
- Snapshot
Version - Version identifier for snapshot format.
- Step
Timing - Timing (in seconds) for the major phases of one simulation step.
- Telemetry
Stream - Streaming telemetry log that keeps the last
capacityentries in memory while also accumulating all entries for bulk export.
Functions§
- rle_
decode - Decode a run-length encoded sequence back to flat values.
- rle_
encode - Run-length encode a sequence of f64 values.