summaryrefslogtreecommitdiff
path: root/internal/ior.go
diff options
context:
space:
mode:
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()