summaryrefslogtreecommitdiff
path: root/internal/flamegraph
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 16:46:37 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 16:46:37 +0200
commitbc7a162f20a62d4f2ac0ba4908e67689e1ee2c5c (patch)
treea756cbaf85cd51127c375724f0a01ccab9c872b8 /internal/flamegraph
parenta639ed055e540d57fc2de6a9e90eac30555515f8 (diff)
refactor: make livetrie caller-owned for pair recycling (task 382)
Diffstat (limited to 'internal/flamegraph')
-rw-r--r--internal/flamegraph/livetrie.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/flamegraph/livetrie.go b/internal/flamegraph/livetrie.go
index 794b790..600e404 100644
--- a/internal/flamegraph/livetrie.go
+++ b/internal/flamegraph/livetrie.go
@@ -77,11 +77,10 @@ func (lt *LiveTrie) invalidateCache() {
lt.cacheMu.Unlock()
}
-// Ingest adds one event pair into the live trie and recycles the pair.
+// Ingest adds one event pair into the live trie.
func (lt *LiveTrie) Ingest(ep *event.Pair) {
record := eventPairToRecord(ep)
lt.AddRecord(record)
- ep.Recycle()
}
// AddRecord adds one already-decoded flamegraph record into the live trie.