mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
074ee79434685a83c611eb0741b5c18b2317a894
- Remove unused formatAvg, formatPercent, activeDurationMs functions - Remove unused constants (LIVE_STALE_MS, SINGLE_SAMPLE_MS) - Remove unused session average tracking (totalTokens, totalDurationMs, messageCount, totalTtftMs) - Remove unused lastToolCallAt from MessageTiming - Remove prefillTotalTokens/prefillProcessedTokens (set but never read) - Remove unused nt variable from prefill detection loop - Simplify display: xxxx tps (PP) / xxxx tps (TG) / - tps (TG)
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%
