一、使用strace查看进程的系统调用情况
sudo strace -p 29411 -t -c -s 128
Process 29411 attached
^CProcess 29411 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
98.25 0.005000 6 850 epoll_wait
1.20 0.000061 0 2972 gettimeofday
0.55 0.000028 0 101 sendto
0.00 0.000000 0 1 write
0.00 0.000000 0 1 stat
0.00 0.000000 0 101 recvfrom
------ ----------- ----------- --------- --------- ----------------
100.00 0.005089 4026 total
阅读(3367) | 评论(0) | 转发(0) |