diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-07 21:26:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-07 21:26:52 +0200 |
| commit | 4460a68aa299ad6b63ffbbbb23585b93fad9feee (patch) | |
| tree | 72b585097db224d319e792b51bdf313401fe891d /internal/flags/flags.go | |
| parent | 2b91942467052dfb389d9209fc96e6bb52fa2e3f (diff) | |
add pprof option and rename ioriotng to ior
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 2c655fa..c22bb75 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -12,6 +12,7 @@ type Flags struct { TidFilter int EventMapSize int CommFilter string + PprofEnable bool } func New() (flags Flags) { @@ -19,6 +20,7 @@ func New() (flags Flags) { flag.IntVar(&flags.TidFilter, "tid", -1, "Filter for thread ID") flag.IntVar(&flags.EventMapSize, "mapSize", 4096*16, "BPF FD event ring buffer map size") flag.StringVar(&flags.CommFilter, "comm", "", "Command to filter for") + flag.BoolVar(&flags.PprofEnable, "pprof", false, "Enable profiling") flag.Parse() return flags |
