mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
917ab344b6ad1c9a77b2373b6b0e159ed038dc7c
- Replace metrics-based TPS with slot n_decoded tracking during generation - Add generation tracking state (generateSlotId, generateCapturedDecoded, generateStartAt) - Poll interval reduced from 2s to 500ms to catch shorter prefill/generation events - AVG now uses session average from message events (cumulative tokens/duration) - Remove unused fetchMetrics, formatRate, formatTtft functions - TPS: slot-based (shows for all generation including files) - AVG: session average (cumulative across messages)
oc-tps
Displays live TPS (tokens per second), average TPS, and average TTFT (time to first token) in the OpenCode session prompt.
Installation
Install from the CLI:
opencode plugin oc-tps@latest --global
Requires opencode 1.3.14 or newer.
Languages
TypeScript
100%
