From 017494938f061fd1276f2a54b1df0e7002655e9f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 10 Apr 2025 21:28:45 +0300 Subject: can serialize and deserialize to/from gob --- internal/flamegraph/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/flamegraph/worker.go') 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: -- cgit v1.2.3