summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/controls.go
diff options
context:
space:
mode:
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, "/")
}