diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 08:14:18 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 08:14:18 +0300 |
| commit | 45b8e82f18cadbedb1c57156b9580b199033be3c (patch) | |
| tree | f74aea1120aed297aacd9dfd9914e34a829aa7f8 /internal/tui/flamegraph/model.go | |
| parent | 987ba21a5ff69b82bd56012866634cabf6670194 (diff) | |
flamegraph: use render contexts and remove wrapper (7p)
Diffstat (limited to 'internal/tui/flamegraph/model.go')
| -rw-r--r-- | internal/tui/flamegraph/model.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go index 81fcb7b..b9a8734 100644 --- a/internal/tui/flamegraph/model.go +++ b/internal/tui/flamegraph/model.go @@ -510,7 +510,20 @@ func (m Model) renderViewContent() string { renderHeight = 3 } - content := RenderTerminalView(m.frames, m.width, renderHeight, m.selectedIdx, m.subtreeSet, m.matchIndices, m.filterVisible, m.globalTotal, m.countFieldLabel(), strings.TrimSpace(m.heightField) != "", m.isDark, m.searchActive, m.searchQuery) + content := RenderTerminalView(RenderContext{ + Frames: m.frames, + Width: m.width, + Height: renderHeight, + SelectedIdx: m.selectedIdx, + SubtreeSet: m.subtreeSet, + MatchSet: m.matchIndices, + FilterSet: m.filterVisible, + GlobalTotal: m.globalTotal, + MetricLabel: m.countFieldLabel(), + HeightMetricActive: strings.TrimSpace(m.heightField) != "", + IsDark: m.isDark, + SearchQuery: m.searchQuery, + }) content = replaceHeaderLine(content, m.toolbarLine()) if m.searchActive { content = replaceFooterLine(content, m.searchFooter()) |
