diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-12 22:58:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-12 22:58:13 +0200 |
| commit | 0cbf594b5646ec7b020894d918c522be825aacc4 (patch) | |
| tree | acebbd79c31a1c1a0efb1400e664c55f52fd4211 /internal/flags/flags.go | |
| parent | ac7ebea0920819a14e981da7e3297a8e2e256559 (diff) | |
refactor
Diffstat (limited to 'internal/flags/flags.go')
| -rw-r--r-- | internal/flags/flags.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 29e4372..236c7ae 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -8,13 +8,13 @@ import ( ) type Flags struct { - PidFilter int - TidFilter int - EventMapSize int - CommFilter string - PathFilter string - PprofEnable bool - TreeEnable bool + PidFilter int + TidFilter int + EventMapSize int + CommFilter string + PathFilter string + PprofEnable bool + FlamegraphEnable bool } func New() (flags Flags) { @@ -24,7 +24,7 @@ func New() (flags Flags) { flag.StringVar(&flags.CommFilter, "comm", "", "Command to filter for") flag.StringVar(&flags.PathFilter, "path", "", "Path to filter for") flag.BoolVar(&flags.PprofEnable, "pprof", false, "Enable profiling") - flag.BoolVar(&flags.TreeEnable, "tree", false, "Enable tree builder") + flag.BoolVar(&flags.FlamegraphEnable, "flamegraph", false, "Enable flamegraph builder") flag.Parse() return flags |
