Commit Graph
23 Commits
Author SHA1 Message Date
Troed Sångberg 9ff08beb1b chore: v0.0.53 - make debug logging toggleable via DEBUG_ENABLED constant
- Set DEBUG_ENABLED = false by default
- Set to true to re-enable file-based debug logging
2026-06-13 23:41:32 +02:00
Troed Sångberg bba57e2eb5 refactor: v0.0.52 - simplify generation tracking to per-slot prev n_decoded
- Track generatePrevNd per slot instead of global generateMaxDecoded
- Calculate TPS from delta between consecutive polls
- Detect resets when nd drops below previous
- Stall (nd == prev) doesn't end generation, just doesn't update TPS
- Reset tracking when no slot found
2026-06-13 23:38:42 +02:00
Troed Sångberg 10319b5e80 fix: v0.0.51 - reset generateMaxDecoded on stall too
- When n_decoded stops increasing, slot may stay is_processing
- Reset max on stall so next generation starts fresh
2026-06-13 23:35:10 +02:00
Troed Sångberg 1aa8675eee fix: v0.0.50 - reset generateMaxDecoded when generation ends
- Previously: max stayed stale from previous session, all new values looked like resets
- Now: reset generateMaxDecoded to 0 when no generating slot is found
2026-06-13 23:31:58 +02:00
Troed Sångberg 66fe076f29 fix: v0.0.49 - skip TPS calc on first poll when max is 0
- When generateMaxDecoded is 0 (new session), don't calculate TPS
- Prevents huge dt from stale generateStartAt
2026-06-13 23:30:25 +02:00
Troed Sångberg c299f430ac fix: v0.0.48 - track max n_decoded globally to handle slot disappear/reappear
- Use generateMaxDecoded to track highest n_decoded seen across all polls
- Detect resets when nd drops below max (even if slot disappeared and reappeared)
- Simplified logic: only compare against max, not per-slot baseline
- Removed generateSlotId tracking (no longer needed)
2026-06-13 23:27:21 +02:00
Troed Sångberg d711364d93 fix: v0.0.47 - simplify n_decoded reset detection
- Any drop in n_decoded means counter reset (cumulative counter)
- Removed arbitrary -5 threshold, now uses delta < 0
- Zero delta now correctly detected as stall
2026-06-13 23:22:51 +02:00
Troed Sångberg 45f24fcf56 fix: v0.0.46 - handle n_decoded counter reset on slot reuse
- Detect when n_decoded drops significantly (counter reset) and treat as new baseline
- Previously: reset caused negative deltas, TPS stalled at 0
- Now: reset counter, restart tracking from new baseline
2026-06-13 23:20:06 +02:00
Troed Sångberg a8bf568b94 fix: v0.0.45 - use Node.js fs for debug logging 2026-06-13 23:17:55 +02:00
Troed Sångberg f2a3aa6e96 fix: v0.0.44 - switch debug logging to file 2026-06-13 23:15:07 +02:00
Troed Sångberg 2d040ed833 debug: add console.log for generation tracking 2026-06-13 23:11:14 +02:00
Troed Sångberg fdf4aa4edc fix: v0.0.42 - clear TPS when generation ends or stalls
- Clear lastGeneratedTps when n_decoded delta <= 0 (generation stalled)
- Clear lastGeneratedTps and bump display when slot stops generating
- Fix genEnded scoping (moved outside for loop)
- Bump display when generation ends so TPS returns to ----
2026-06-13 23:08:00 +02:00
Troed Sångberg 917ab344b6 feat: v0.0.41 - slot-based TPS from n_decoded, 500ms poll interval
- 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)
2026-06-13 22:59:22 +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 a1a968fdb8 0.0.20 2026-06-13 21:15:31 +02:00
Troed Sångberg aa61f922a1 Fix plugin loading: correct TUI signature, fix regex syntax, restore SessionPromptRight component 2026-06-13 21:15:22 +02:00
Troed Sångberg a161a54aaa Test: Fix plugin ID and slot registration 2026-06-13 21:00:38 +02:00
Daniel Smolsky db1fbf043c Bump version to 0.0.6 2026-04-04 17:20:20 -04:00
Daniel Smolsky da41dda631 Bump version to 0.0.5 2026-04-04 17:04:48 -04:00
Daniel Smolsky 9f21d1fc83 Bump version to 0.0.4 2026-04-04 13:23:14 -04:00
Daniel Smolsky 5d7c7bbfb8 Refine live TPS and session average 2026-04-04 13:21:00 -04:00
Daniel Smolsky e7160857de Improve TPS tracking and add README 2026-04-04 03:54:50 -04:00
Daniel Smolsky 21da2b4b5e Add oc-tps plugin 2026-04-04 02:58:46 -04:00