summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/controls.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 09:05:51 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 09:05:51 +0200
commit10c5d48413afaef88626419d8c4bf9fbf6f1c902 (patch)
treefe6c86eaf16c16070aa8025e207e5d88bd5595c6 /internal/tui/flamegraph/controls.go
parent0a69582e7f8111c2a508d8f062de91a06f296974 (diff)
Fix flamegraph navigation, filtering, and system-share feedback
Diffstat (limited to 'internal/tui/flamegraph/controls.go')
-rw-r--r--internal/tui/flamegraph/controls.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/tui/flamegraph/controls.go b/internal/tui/flamegraph/controls.go
index 74a248d..959a5b0 100644
--- a/internal/tui/flamegraph/controls.go
+++ b/internal/tui/flamegraph/controls.go
@@ -22,10 +22,12 @@ func (m *Model) resetBaseline() {
m.zoomStack = nil
m.selectedIdx = 0
m.snapshot = nil
+ m.globalTotal = 0
m.frames = nil
m.targetFrames = nil
m.searchQuery = ""
m.matchIndices = make(map[int]bool)
+ m.filterVisible = make(map[int]bool)
m.subtreeSet = make(map[int]bool)
m.statusMessage = "Baseline reset"
}
@@ -47,8 +49,11 @@ func (m *Model) cycleFieldOrder() {
m.zoomStack = nil
m.selectedIdx = 0
m.snapshot = nil
+ m.globalTotal = 0
m.frames = nil
m.targetFrames = nil
+ m.matchIndices = make(map[int]bool)
+ m.filterVisible = make(map[int]bool)
m.subtreeSet = make(map[int]bool)
m.statusMessage = "Order: " + strings.Join(nextPreset, "/")
}