dotfiles/fish/.config/fish/functions/pft.fish

4 lines
135 B
Fish

function pft --description 'Select a process to run perf top'
set proc (ps -ef | fzf | awk '{print $2}')
perf top -p $proc
end