7 lines
218 B
Fish
7 lines
218 B
Fish
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
|