src/options_no_pprof.go
raw| 1 | //go:build !pprof |
| 2 | // +build !pprof |
| 3 | |
| 4 | package fzf |
| 5 | |
| 6 | import "errors" |
| 7 | |
| 8 | func (o *Options) initProfiling() error { |
| 9 | if o.CPUProfile != "" || o.MEMProfile != "" || o.BlockProfile != "" || o.MutexProfile != "" { |
| 10 | return errors.New("error: profiling not supported: FZF must be built with '-tags=pprof' to enable profiling") |
| 11 | } |
| 12 | return nil |
| 13 | } |