diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-17 00:30:10 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-17 00:30:10 +0300 |
| commit | f27848b812aecd0bb0aecb100119c0ab71b5fbeb (patch) | |
| tree | f5fe52b02a9a377ee523844d77cb1ad4caf13e7b /internal/ior.go | |
| parent | ae12f7882c03c201732501df18e98a9772be9c71 (diff) | |
more about this
Diffstat (limited to 'internal/ior.go')
| -rw-r--r-- | internal/ior.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/ior.go b/internal/ior.go index 98fb39c..f06b730 100644 --- a/internal/ior.go +++ b/internal/ior.go @@ -117,7 +117,7 @@ func runTrace() error { close(pprofDone) } - loop := newEventLoop() + el := newEventLoop() duration := time.Duration(flags.Get().Duration) * time.Second fmt.Println("Probing for", duration) ctx, cancel := context.WithTimeout(context.Background(), duration) @@ -133,7 +133,7 @@ func runTrace() error { go func() { <-ctx.Done() - fmt.Println(loop.stats()) + fmt.Println(el.stats()) if flags.Get().PprofEnable { fmt.Println("Stoppig profiling, writing ior.cpuprofile and ior.memprofile") pprof.StopCPUProfile() @@ -143,7 +143,7 @@ func runTrace() error { }() startTime := time.Now() - loop.run(ctx, ch) + el.run(ctx, ch) totalDuration := time.Since(startTime) <-pprofDone fmt.Println("Good bye... (unloading BPF tracepoints will take a few seconds...) after", totalDuration) |
