diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-06 16:46:37 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-06 16:46:37 +0200 |
| commit | bc7a162f20a62d4f2ac0ba4908e67689e1ee2c5c (patch) | |
| tree | a756cbaf85cd51127c375724f0a01ccab9c872b8 /internal/flamegraph | |
| parent | a639ed055e540d57fc2de6a9e90eac30555515f8 (diff) | |
refactor: make livetrie caller-owned for pair recycling (task 382)
Diffstat (limited to 'internal/flamegraph')
| -rw-r--r-- | internal/flamegraph/livetrie.go | 3 |
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. |
