diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-25 22:58:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-25 22:58:40 +0200 |
| commit | 4c34b9efcd539c819648c927d7e3f53220df8ad2 (patch) | |
| tree | f9de9fd650a2d16316ba2c159990d891c9de5189 /internal/ior.go | |
| parent | 67e10f34c92e93343adbd690b3b21e455e863bd3 (diff) | |
Fix stream paused scrolling and apply pending TUI/probe updates
Diffstat (limited to 'internal/ior.go')
| -rw-r--r-- | internal/ior.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/ior.go b/internal/ior.go index 61c5e10..a910fc0 100644 --- a/internal/ior.go +++ b/internal/ior.go @@ -262,6 +262,16 @@ func runTraceWithContext(parentCtx context.Context, started chan<- struct{}, con if configure != nil { configure(el) } + origPrintCb := el.printCb + el.printCb = func(ep *event.Pair) { + if !mgr.IsActive(ep.EnterEv.GetTraceId().Name()) { + ep.Recycle() + return + } + if origPrintCb != nil { + origPrintCb(ep) + } + } duration := time.Duration(flags.Get().Duration) * time.Second logln("Probing for", duration) ctx, cancel := context.WithTimeout(parentCtx, duration) |
