diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 13:00:38 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 13:00:38 +0200 |
| commit | f92382c20193a5366d15c7347dcc8ed2743f3b85 (patch) | |
| tree | 11789e0336233501c778c521075f20c8d2c3558d /internal/flags/flags.go | |
| parent | 92e87642f2936f0da63d32113f75633b38be24f6 (diff) | |
Add WASM-ready flamegraph JSON export
Diffstat (limited to 'internal/flags/flags.go')
| -rw-r--r-- | internal/flags/flags.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go index a732c3a..bc1654b 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -67,6 +67,7 @@ type Flags struct { LiveInterval time.Duration OpenCommand string FlamegraphName string + FlamegraphJSON bool TUIExportEnable bool // To convert ior data into native SVG format @@ -125,6 +126,7 @@ func parse() error { flag.DurationVar(&singleton.LiveInterval, "live-interval", 200*time.Millisecond, "Live flamegraph refresh interval") flag.StringVar(&singleton.OpenCommand, "open", "", "Command to open live flamegraph URL (used with -live); use {url} placeholder or URL is appended") flag.StringVar(&singleton.FlamegraphName, "name", "default", "Name of the flamegraph, used to generate the SVG file") + flag.BoolVar(&singleton.FlamegraphJSON, "flamegraphJson", false, "Also export flamegraph tree as JSON in -ior mode (experimental WASM-ready output)") flag.BoolVar(&singleton.TUIExportEnable, "tuiExport", true, "Enable writing TUI snapshot export files") flag.StringVar(&singleton.IorDataFile, "ior", "", "IOR data file to convert into native SVG flamegraph") |
