summaryrefslogtreecommitdiff
path: root/internal/flamegraph/worker.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-10 21:28:45 +0300
committerPaul Buetow <paul@buetow.org>2025-04-10 21:28:45 +0300
commit017494938f061fd1276f2a54b1df0e7002655e9f (patch)
tree9c98fbf31b524233b637079a0482b4255eb6e388 /internal/flamegraph/worker.go
parent9572fa5d087731f68d55517847833f6203b9a70d (diff)
can serialize and deserialize to/from gob
Diffstat (limited to 'internal/flamegraph/worker.go')
-rw-r--r--internal/flamegraph/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/flamegraph/worker.go b/internal/flamegraph/worker.go
index 40f6d3f..534bfc3 100644
--- a/internal/flamegraph/worker.go
+++ b/internal/flamegraph/worker.go
@@ -22,7 +22,7 @@ func (w worker) run(ctx context.Context, wg *sync.WaitGroup, ch <-chan *event.Pa
for {
select {
case ev := <-ch:
- w.iod.add(ev)
+ w.iod.addEventPair(ev)
ev.Recycle()
default: