strace 很有用的命令组合

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值