# strace追踪系统调用 可执行文件test strace ./test # strace跟踪信号传递 # 系统调用统计 strace -c ./test # -o选项重定向输出 strace -c -o file ./test # -T 将每个系统调用所花费的时间打印出来 strace -T ./test # 追踪现有的进程 -p pid