summaryrefslogtreecommitdiff
path: root/internal/ior.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-25 22:58:40 +0200
committerPaul Buetow <paul@buetow.org>2026-02-25 22:58:40 +0200
commit4c34b9efcd539c819648c927d7e3f53220df8ad2 (patch)
treef9de9fd650a2d16316ba2c159990d891c9de5189 /internal/ior.go
parent67e10f34c92e93343adbd690b3b21e455e863bd3 (diff)
Fix stream paused scrolling and apply pending TUI/probe updates
Diffstat (limited to 'internal/ior.go')
-rw-r--r--internal/ior.go10
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)