From 4460a68aa299ad6b63ffbbbb23585b93fad9feee Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 7 Mar 2025 21:26:52 +0200 Subject: add pprof option and rename ioriotng to ior --- internal/flags/flags.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/flags') 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 -- cgit v1.2.3