From 55276cd2a2ea3e918d2c625a384c7fa99fee9295 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 26 Mar 2025 22:11:40 +0200 Subject: initial io_ async tracepoints --- internal/flamegraph/worker.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal/flamegraph') diff --git a/internal/flamegraph/worker.go b/internal/flamegraph/worker.go index 09458fd..7369949 100644 --- a/internal/flamegraph/worker.go +++ b/internal/flamegraph/worker.go @@ -24,7 +24,12 @@ func (w worker) run(ctx context.Context, wg *sync.WaitGroup, ch <-chan *event.Pa for { select { case ev := <-ch: - filePath := ev.File.Name() + var filePath string + if ev.File == nil { + filePath = "N:file" + } else { + filePath = ev.File.Name() + } pathMap, ok := w.collapsed[filePath] if !ok { pathMap = make(map[types.TraceId]counter) -- cgit v1.2.3