summaryrefslogtreecommitdiff
path: root/internal/flamegraph/worker.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-28 23:01:25 +0200
committerPaul Buetow <paul@buetow.org>2025-03-28 23:01:25 +0200
commit525e38ae59ce7a0d3be49ecba94df678f1def409 (patch)
tree0e8011f99d52d1d24a2ebeeb8d17237887861212 /internal/flamegraph/worker.go
parenta9b56186f32b4a1899543c8cddad400390d795c4 (diff)
initial iordata implementation
Diffstat (limited to 'internal/flamegraph/worker.go')
-rw-r--r--internal/flamegraph/worker.go6
1 files changed, 5 insertions, 1 deletions
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.