Commit Graph
3 Commits
Author SHA1 Message Date
Troed Sångberg 074ee79434 refactor: clean up dead code and simplify display format
- 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)
2026-06-14 12:22:25 +02:00
Troed Sångberg 36fcaa27a1 feat: v0.0.40 - per-slot PP calculation from /slots endpoint
- Fix PP calculation: use per-slot n_prompt_tokens during prefill state
  instead of global llamacpp:prompt_tokens_total from /metrics
- Add isPrefilling flag and prefill tracking state (slotId, capturedTokens, startAt)
- Add dedicated formatters: formatPps, formatTps, formatAvg, pad4
- Replace formatRate suffixes with raw number formatters
- Display: PP | TPS | AVG with fixed-width 4-char padding
- Slot polling every 2s with model query parameter
- Debug logging to /tmp/oc-ls-stats-debug.log
- Add .npmignore, TUIPLUGIN.md, test-debug-log.jsonl
- Update AGENTS.md with slot state phases, PP calculation docs
2026-06-13 22:52:31 +02:00
Troed Sångberg 1600d1a28a Document debugging process and fixes in AGENTS.md 2026-06-13 21:17:47 +02:00