liutao@ubuntu:~$ sudo strace -p 28098 -f -c
Process 28158 attached with 15 threads - interrupt to quit
^CProcess 28098 detached
Process 28099 detached
Process 28100 detached
Process 28101 detached
Process 28102 detached
Process 28103 detached
Process 28104 detached
Process 28105 detached
Process 28106 detached
Process 28107 detached
Process 28108 detached
Process 28109 detached
Process 28156 detached
Process 28157 detached
Process 28158 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
82.09 9.880000 156825 63 14 nanosleep
16.45 1.980000 82500 24 13 restart_syscall
1.30 0.156188 1 247303 13380 futex
0.12 0.014696 0 244188 sendto
0.03 0.003521 0 248222 gettimeofday
0.00 0.000321 0 5978 recvfrom
0.00 0.000075 0 4648 mprotect
0.00 0.000057 0 4002 epoll_wait
0.00 0.000000 0 25 stat
0.00 0.000000 0 181 brk
0.00 0.000000 0 66 rt_sigaction
0.00 0.000000 0 132 rt_sigprocmask
0.00 0.000000 0 49 6 rt_sigreturn
0.00 0.000000 0 9 9 access
0.00 0.000000 0 2 clock_gettime
------ ----------- ----------- --------- --------- ----------------
100.00 12.034858 754892 13422 total
Process 28158 attached with 15 threads - interrupt to quit
^CProcess 28098 detached
Process 28099 detached
Process 28100 detached
Process 28101 detached
Process 28102 detached
Process 28103 detached
Process 28104 detached
Process 28105 detached
Process 28106 detached
Process 28107 detached
Process 28108 detached
Process 28109 detached
Process 28156 detached
Process 28157 detached
Process 28158 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
82.09 9.880000 156825 63 14 nanosleep
16.45 1.980000 82500 24 13 restart_syscall
1.30 0.156188 1 247303 13380 futex
0.12 0.014696 0 244188 sendto
0.03 0.003521 0 248222 gettimeofday
0.00 0.000321 0 5978 recvfrom
0.00 0.000075 0 4648 mprotect
0.00 0.000057 0 4002 epoll_wait
0.00 0.000000 0 25 stat
0.00 0.000000 0 181 brk
0.00 0.000000 0 66 rt_sigaction
0.00 0.000000 0 132 rt_sigprocmask
0.00 0.000000 0 49 6 rt_sigreturn
0.00 0.000000 0 9 9 access
0.00 0.000000 0 2 clock_gettime
------ ----------- ----------- --------- --------- ----------------
100.00 12.034858 754892 13422 total