2021-12-10 11:09:44 +01:00
|
|
|
function pfr --description 'Select a process to record performance data in given file name'
|
|
|
|
set proc (ps -ef | fzf | awk '{print $2}')
|
2022-12-26 10:16:31 +01:00
|
|
|
if test -n "$proc"
|
|
|
|
perf record -F 99 -o $argv -p $proc
|
|
|
|
end
|
2021-12-10 11:09:44 +01:00
|
|
|
end
|