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

7 lines
167 B
Fish

function pft --description 'Select a thread to run perf top'
set tid (ps -eLf | fzf | awk '{print $4}')
if test -n "$tid"
perf top -t $tid
end
end