diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 08:19:22 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 08:19:22 +0300 |
| commit | 4365542fc8c08f7ce11040fa62a94a78fba1c2e2 (patch) | |
| tree | 7b85b7314670ce50b2c4616147262d2987c6b584 /internal/tui/flamegraph/controls.go | |
| parent | 891e31f845d5a1d9fc7426eb8351a05c42fb1cd5 (diff) | |
flamegraph: extract heightMetricActive helper (yo)
Diffstat (limited to 'internal/tui/flamegraph/controls.go')
| -rw-r--r-- | internal/tui/flamegraph/controls.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/tui/flamegraph/controls.go b/internal/tui/flamegraph/controls.go index 42c3e3e..c9e5484 100644 --- a/internal/tui/flamegraph/controls.go +++ b/internal/tui/flamegraph/controls.go @@ -234,3 +234,7 @@ func (m Model) heightFieldLabel() string { return m.heightField } } + +func (m Model) heightMetricActive() bool { + return strings.TrimSpace(m.heightField) != "" +} |
