overhead property

int get overhead

Bytes that carry information (content) vs. control/formatting overhead spent per frame (everything except content and session). A high overhead fraction on update frames is the signal that byte-level encoding (e.g. incremental SGR) is worth tuning. Session lifecycle bytes are excluded: they are connection setup/teardown, paid once per terminal enter/restore, and would otherwise dominate the fraction on short runs without saying anything about frame encoding.

Implementation

int get overhead => sgr + cursor + sync + other;