From 525e38ae59ce7a0d3be49ecba94df678f1def409 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 28 Mar 2025 23:01:25 +0200 Subject: initial iordata implementation --- internal/flamegraph/worker.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/flamegraph/worker.go') diff --git a/internal/flamegraph/worker.go b/internal/flamegraph/worker.go index 7369949..7c8d848 100644 --- a/internal/flamegraph/worker.go +++ b/internal/flamegraph/worker.go @@ -10,11 +10,15 @@ import ( type worker struct { collapsed collapsed + data iorData done chan struct{} } func newWorker() worker { - return worker{collapsed: make(collapsed)} + return worker{ + collapsed: make(collapsed), // TODO: Retire + data: newIorData(), // TODO: Implement fully + } } // Run until ch is closed or has no more events and ctx is done. -- cgit v1.2.3