diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-08 20:36:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-08 20:36:30 +0200 |
| commit | 5d6a13326e269e533f7137a579390e9ef063d2eb (patch) | |
| tree | 02ddc4b5af8cab9c6c1eecf9034aada295d5ee80 /internal/ior.go | |
| parent | 4ca02bb88cffb28bb000326688c6e8e7c1cbe8a9 (diff) | |
task 373: preserve stream history across filter restart
Diffstat (limited to 'internal/ior.go')
| -rw-r--r-- | internal/ior.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/ior.go b/internal/ior.go index d113fff..9f58821 100644 --- a/internal/ior.go +++ b/internal/ior.go @@ -183,6 +183,9 @@ func tuiTraceStarterFromRunTrace( streamBuf := eventstream.NewRingBuffer() liveTrie := flamegraph.NewLiveTrie(cfg.CollapsedFields, cfg.CountField) if bindings, ok := tui.RuntimeBindingsFromContext(ctx); ok { + if persistent := bindings.StreamBuffer(); persistent != nil { + streamBuf = persistent + } bindings.SetDashboardSnapshotSource(engine) bindings.SetEventStreamSource(streamBuf) bindings.SetLiveTrie(liveTrie) |
