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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
218 B
Fish
Raw Permalink Normal View History

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