7 lines
170 B
Fish
7 lines
170 B
Fish
|
function pfp --description 'Select a process to run perf top'
|
||
|
set proc (ps -ef | fzf | awk '{print $2}')
|
||
|
if test -n "$proc"
|
||
|
perf top -p $proc
|
||
|
end
|
||
|
end
|