diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-26 22:11:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-26 22:11:40 +0200 |
| commit | 55276cd2a2ea3e918d2c625a384c7fa99fee9295 (patch) | |
| tree | 27921147381238a273f11bf03c31c4b1213568d5 /internal/flamegraph/worker.go | |
| parent | f085f544e1d4df985e9c3bd394398547a8888e0f (diff) | |
initial io_ async tracepoints
Diffstat (limited to 'internal/flamegraph/worker.go')
| -rw-r--r-- | internal/flamegraph/worker.go | 7 |
1 files changed, 6 insertions, 1 deletions
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) |
