summaryrefslogtreecommitdiff
path: root/internal/statsengine/engine.go
AgeCommit message (Collapse)Author
2026-05-12add DefaultTopN constant to statsengine and replace hard-coded 64 capacity ↵Paul Buetow
values Introduces statsengine.DefaultTopN = 64 as the canonical named constant for the top-N capacity used when constructing an Engine. Removes the local defaultEngineCapacity constant from runtime_builder.go and updates all call sites to reference statsengine.DefaultTopN instead of bare 64. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12refactor: split Snapshot in statsengine to comply with 50-line limitPaul Buetow
Extract captureSnapshotInputs (lock-guarded state copy), buildSubSnapshots (concurrent per-category builders), and populateSnapshotFields (scalar field assignment) from the monolithic Snapshot method. The method itself is now 18 lines; all three helpers are well under 30 lines each. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05Normalize Go import grouping with local ior sectionPaul Buetow
2026-02-25Fix stream paused scrolling and apply pending TUI/probe updatesPaul Buetow
2026-02-25Parallelize snapshot builders in stats enginePaul Buetow
2026-02-24statsengine: compact process accumulator at high cardinalityPaul Buetow
2026-02-24statsengine: build snapshots outside engine mutexPaul Buetow
2026-02-23task 302: add stats engine orchestration and snapshotsPaul Buetow