Expand description
Opt-in terminal dashboard for live metrics (RLG_TUI=1).
Opt-in terminal dashboard for live observability metrics.
Set RLG_TUI=1 to spawn a background render thread that paints a
non-clobbering sparkline dashboard at ~60 FPS. Enable the tui feature
for automatic terminal size detection; otherwise falls back to 80x24.
Structs§
- TuiMetrics
- Atomic counters for the TUI dashboard. Cache-line aligned (
repr(align(64))).
Functions§
- build_
fmt_ line - Builds the format counts line from metrics.
- compute_
level_ bars - Computes level bar rendering from metrics.
- get_
terminal_ height_ of - Returns the terminal height for the given handle, or 24 as fallback.
- render_
tick - Performs one tick of the TUI dashboard, returning the ANSI-formatted frame.
- spawn_
tui_ thread - Spawns the background TUI renderer thread.