summaryrefslogtreecommitdiff
path: root/internal/tui
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui')
-rw-r--r--internal/tui/dashboard/model.go4
-rw-r--r--internal/tui/flamegraph/model.go2
-rw-r--r--internal/tui/flamegraph/renderer.go8
3 files changed, 6 insertions, 8 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index 8548481..2535a90 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -84,8 +84,8 @@ type Model struct {
// autoResetEvery; autoResetStatus uses this to render the live
// countdown ("12s/30s") in the chrome. Updated on every arm
// (SetAutoResetInterval, focus regain, tick re-arm).
- autoResetArmedAt time.Time
- keys common.KeyMap
+ autoResetArmedAt time.Time
+ keys common.KeyMap
globalFilter globalfilter.Filter
filterStack []string
recordingStatus string
diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go
index 73285f9..c188323 100644
--- a/internal/tui/flamegraph/model.go
+++ b/internal/tui/flamegraph/model.go
@@ -1051,7 +1051,6 @@ func (m Model) rootSnapshotPath() string {
return m.ZoomNavigator.rootSnapshotPath(m.snapshot, m.frames)
}
-
// frameIndexAt delegates to the FrameAnimator package-level helper to convert
// terminal coordinates (x, y) to a frame index, accounting for UI chrome.
func (m Model) frameIndexAt(x, y int) int {
@@ -1063,7 +1062,6 @@ func (m Model) frameCoordToTargetRow(dataRow, availableRows int) int {
return frameCoordToTargetRow(m.frames, dataRow, availableRows)
}
-
func (m Model) withZoomLineage(frames []tuiFrame) []tuiFrame {
return applyZoomLineage(frames, m.snapshot, m.zoomPath, m.width)
}
diff --git a/internal/tui/flamegraph/renderer.go b/internal/tui/flamegraph/renderer.go
index 8f0d09b..24b99ed 100644
--- a/internal/tui/flamegraph/renderer.go
+++ b/internal/tui/flamegraph/renderer.go
@@ -209,12 +209,12 @@ func semanticFrameColor(name string) (color.Color, bool) {
// renderViewParams bundles the pre-computed layout parameters used by
// RenderTerminalView helpers to avoid threading many individual arguments.
type renderViewParams struct {
- rowOffset int
- maxRow int
- barHeight int
+ rowOffset int
+ maxRow int
+ barHeight int
availableRows int
visibleFrames int
- truncated bool
+ truncated bool
}
// computeRenderParams derives the row-layout parameters for a given frame set