Developer
Render Metrics
Debug terminal rendering performance.
Termy ships a debug-only render metrics overlay for diagnosing rendering churn.
Enable
RUST_LOG=info TERMY_RENDER_METRICS=1 cargo run -p termyMetrics logs are gated on debug_assertions; --release builds will not emit render_metrics lines.
Counters
| Counter | Meaning |
|---|---|
full | Full per-pane cell cache rebuild decisions |
partial | Dirty-span patch decisions |
reuse | No cell cache update needed |
dirty_span | Number of dirty spans consumed during partial updates |
patched_cell | Number of cells patched from dirty spans |
grid_paint / shape_line | Paint + text shaping work that interval |
Sanity check
During cursor blink, full should stay near 0. Small partial or reuse values are expected depending on reported terminal damage.
Benchmarks (macOS only)
cargo run -p xtask -- benchmark-compareRequires xctrace / Activity Monitor. Not supported on Linux or Windows.