Documentation
¶
Overview ¶
Command uiapimeasure measures the UI API v0 terminal stream for scripts/ui-api-measure.sh: frames and bytes per second for a set of busy terminals, capture-pane commands per second (from a log the script's tmux wrapper writes), Sidecar and tmux CPU, and keystroke-to-echo latency on one more terminal. It prints one JSON summary per run.
Each terminal is its own WebSocket, as each <sidecar-terminal> on a page is. Busy terminals are view-only. The echo terminal takes control at the pane's current geometry (so nothing is resized), types one byte at a time into a pane running `cat`, and times each byte from the input request to the first frame that shows it.
Run it by naming the package explicitly:
go run ./internal/tools/uiapimeasure -url ws://127.0.0.1:PORT/api/v0/terminal -bearer TOKEN -busy S1,S2 -window 15s