summaryrefslogtreecommitdiff
path: root/internal/ior.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-24 22:55:26 +0200
committerPaul Buetow <paul@buetow.org>2026-02-24 22:55:26 +0200
commit78e9de77d8c443fe8dbe560b5ccb168a6142eb55 (patch)
treeb18f0e45c2bac79b36466ca291ba118a3b8b0f78 /internal/ior.go
parent6a761bac0d866f2f3a3b224b603446630803e362 (diff)
add docs
Diffstat (limited to 'internal/ior.go')
-rw-r--r--internal/ior.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/ior.go b/internal/ior.go
index b136931..55c637c 100644
--- a/internal/ior.go
+++ b/internal/ior.go
@@ -91,6 +91,12 @@ func attachTracepointsWith(module tracepointModule, shouldAttach func(string) bo
return nil
}
+// Run is the main entry point for the ior binary.
+//
+// When -ior=<trace.ior.zst> is provided it reads the compressed trace data, generates
+// a native flamegraph SVG (using the selected fields and count metric) and then serves
+// it via an embedded HTTP server. Without -ior, Run either executes trace mode or
+// starts the TUI, depending on the active flags.
func Run() error {
flags.PrintVersion()
cfg := flags.Get()