dotfiles/fish/.config/fish/functions/pfr.fish

4 lines
179 B
Fish

function pfr --description 'Select a process to record performance data in given file name'
set proc (ps -ef | fzf | awk '{print $2}')
perf record -F 99 -o $argv -p $proc
end