diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-10 21:53:24 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-10 21:53:24 +0300 |
| commit | 4eca989fa649538e78038999f5e4cc21acca1db9 (patch) | |
| tree | 89e50dbbe375e1e08c05d936b080795c1a04604d /internal/flags/flags.go | |
| parent | 017494938f061fd1276f2a54b1df0e7002655e9f (diff) | |
more on this
Diffstat (limited to 'internal/flags/flags.go')
| -rw-r--r-- | internal/flags/flags.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 890c18f..ab9a342 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -19,8 +19,12 @@ var validCollapsedFields = []string{ "path", "comm", "tracepoint", - "pid", "tid", + "pid", + "tid", "count", + "duration", + "durationToPrev", + "bytes", } func Get() Flags { @@ -73,7 +77,8 @@ func parse() { flag.StringVar(&singleton.FlamegraphName, "name", "foo", "Name of the flamegraph data output") flag.StringVar(&singleton.IorDataFile, "ior", "", "IOR data file to convert into collapsed format") - fields := flag.String("fields", "", "Comma separated list of fields to collapse") + fields := flag.String("fields", "", + fmt.Sprintf("Comma separated list of fields to collapse, valid are: %v", validCollapsedFields)) flag.Parse() singleton.TracepointsToAttach = extractTracepointFlags(*tracepointsToAttach) |
