查看哪个进程的线程CPU高
top H p <pid>
查看线程pid执行函数的次数
strace -c -p <pid>
附加到线程, 查看线程执行的代码
strace -p <pid>
查看程序的路径
which strace
查看程序依赖的库(x86)
ldd /程序路径
查看程序依赖的库(交叉编译)
readelf /程序路径
TOP指定程序
top -p `pgrep mds |xargs perl -e "print join ',',@ARGV"`
top H p <pid>
strace -c -p <pid>
strace -p <pid>
which strace
ldd /程序路径
readelf /程序路径
top -p `pgrep mds |xargs perl -e "print join ',',@ARGV"`