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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
167 B
Fish
Raw Normal View History

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