summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/renderer.go
AgeCommit message (Collapse)Author
2026-05-27cp: remove dead flamegraph helpers and dead style param plumbingPaul Buetow
2026-05-27flamegraph: table-drive metric cycles and semantic colors (9p)Paul Buetow
2026-05-27flamegraph: dedupe layout math for hit mapping (8p)Paul Buetow
2026-05-27flamegraph: use render contexts and remove wrapper (7p)Paul Buetow
2026-05-26flamegraph: variable leaf bar heights for height metric (uo)Paul Buetow
2026-05-26flamegraph: plumb HeightTotal through tuiFrame layout (task to)Paul Buetow
2026-05-13perf: replace string += concatenation with strings.Builder in TUI render hot ↵Paul Buetow
paths Swap out ad-hoc += string concatenation in the flamegraph toolbar/status lines, dashboard filter summary, bubble/treemap status lines, eventstream view, processes tab, and probes list for strings.Builder, eliminating redundant allocations on every render tick. Also update dashboard/model_test.go fake SnapshotSource implementations to match the updated interface signature. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13enforce gofmt formatting and add Fmt/FmtCheck mage targetsPaul Buetow
Run gofmt -w on 9 files that had minor alignment/whitespace drift (pair.go, filter.go, ior_mode_registry.go, ior_mode_test.go, runtime.go, engine.go, dashboard/model.go, flamegraph/model.go, flamegraph/renderer.go). Add two new Mage targets to Magefile.go: - `mage fmt` – rewrites all .go files in-place via go/format - `mage fmtCheck` – dry-run check; fails with a list of offending files, suitable as a CI gate Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12refactor flamegraph TUI model into focused sub-controllersPaul Buetow
Break the god-class Model in internal/tui/flamegraph/model.go into four focused sub-controllers that each own a single concern: - ZoomNavigator : zoom path, stack, root node, and reset/undo logic - SelectionManager: selected frame index, clamp, traversal, navigation - FrameAnimator : spring animation, frame layout swap, ancestry index - SearchController: search query, match indices, filter-visible set All four are embedded in Model so existing field access (m.selectedIdx, m.zoomPath, etc.) is promoted unchanged, keeping tests and callers intact. Model methods now delegate to the sub-controllers rather than holding all logic inline. Also split RenderTerminalView (88 lines) into computeRenderParams, buildToolbar, buildFilteredStatus, and buildNormalStatus helpers, and extracted buildSnapshotMsg from RefreshFromLiveTrieCmd. All functions are now ≤ 50 lines. All tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18cleanupPaul Buetow
2026-03-09tui: fix flamegraph click re-rootingPaul Buetow
2026-03-09tui: remove flame selected underlinePaul Buetow
2026-03-06feat(tui): add flamegraph bytes metric togglePaul Buetow
2026-03-06flamegraph: use full viewport with capped bar height and preserve footer/statusPaul Buetow
2026-03-06flamegraph: keep non-matches visible in filter and add pgup/pgdn selection jumpsPaul Buetow
2026-03-06Add live flamegraph test modes and dynamic synthetic live feedPaul Buetow
2026-03-06Fix flamegraph navigation, filtering, and system-share feedbackPaul Buetow
2026-03-06Keep flame children visible under heavy rounding and clarify filter percentPaul Buetow
2026-03-06Start flame ticks on dashboard entry and use purple selectionPaul Buetow
2026-03-06Improve flamegraph selection, filter, and zoom feedbackPaul Buetow
2026-03-05Normalize Go import grouping with local ior sectionPaul Buetow
2026-03-05Make flame tab default and fix flame hotkey routingPaul Buetow
2026-03-05Reduce flamegraph hot-path allocationsPaul Buetow
2026-03-05Add flamegraph benchmark suite and reuse hot-path buffersPaul Buetow
2026-03-05task 360: add flamegraph search and match navigationPaul Buetow
2026-03-05task 359: add flamegraph zoom interactionsPaul Buetow
2026-03-05task 358: add flamegraph keyboard navigationPaul Buetow
2026-03-05task 357: add flamegraph subtree highlightingPaul Buetow
2026-03-05task 356: implement flamegraph terminal view rendererPaul Buetow
2026-03-05task 355: add terminal flamegraph layout rendererPaul Buetow