strace -cp 1
命令输出:
strace: Process 1 attached
strace: Process 1 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
28.09 0.000084 16 5 clone
13.04 0.000039 7 5 timerfd_settime
12.71 0.000038 6 6 epoll_wait
11.04 0.000033 6 5 ioctl
9.70 0.000029 4 6 read