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