summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/flamegraph/search.go')
-rw-r--r--internal/tui/flamegraph/search.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/flamegraph/search.go b/internal/tui/flamegraph/search.go
index 6bedc3e..5cd66b1 100644
--- a/internal/tui/flamegraph/search.go
+++ b/internal/tui/flamegraph/search.go
@@ -53,7 +53,7 @@ func (m *Model) jumpMatch(direction int) {
} else {
m.selectedIdx = matches[0]
}
- m.subtreeSet = computeSubtreeSetInto(m.frames, m.selectedIdx, m.subtreeSet)
+ m.subtreeSet = subtreeSetUsingAncestry(m.frames, m.selectedIdx, m.ancestry, m.subtreeSet)
return
}
@@ -65,7 +65,7 @@ func (m *Model) jumpMatch(direction int) {
next = 0
}
m.selectedIdx = matches[next]
- m.subtreeSet = computeSubtreeSetInto(m.frames, m.selectedIdx, m.subtreeSet)
+ m.subtreeSet = subtreeSetUsingAncestry(m.frames, m.selectedIdx, m.ancestry, m.subtreeSet)
}
func (m *Model) recomputeFilterState() {
@@ -88,7 +88,7 @@ func (m *Model) recomputeFilterState() {
m.matchIndices[idx] = true
}
}
- m.filterVisible = computeFilterVisibleSetInto(m.frames, m.matchIndices, m.filterVisible)
+ m.filterVisible = filterVisibleSetUsingAncestry(m.frames, m.matchIndices, m.ancestry, m.filterVisible)
}
func orderedMatchIndices(matchSet map[int]bool) []int {