Skip to content

Instantly share code, notes, and snippets.

@mdkent
Created April 16, 2010 21:33
Show Gist options
  • Save mdkent/369001 to your computer and use it in GitHub Desktop.
Save mdkent/369001 to your computer and use it in GitHub Desktop.
[root@el-test ~]# strace -p 8438 -c
Process 8438 attached - interrupt to quit
strace: ptrace(PTRACE_CONT,1,133): Input/output error
Process 8438 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
94.33 0.001496 125 12 write
3.53 0.000056 6 9 mmap
2.14 0.000034 4 9 munmap
0.00 0.000000 0 33 read
0.00 0.000000 0 3 open
0.00 0.000000 0 9 3 close
0.00 0.000000 0 9 fstat
0.00 0.000000 0 6 6 lseek
0.00 0.000000 0 2 brk
0.00 0.000000 0 6 rt_sigaction
0.00 0.000000 0 3 rt_sigprocmask
0.00 0.000000 0 15 select
0.00 0.000000 0 3 socket
0.00 0.000000 0 6 3 connect
0.00 0.000000 0 21 fcntl
0.00 0.000000 0 3 gettimeofday
0.00 0.000000 0 18 clock_gettime
------ ----------- ----------- --------- --------- ----------------
100.00 0.001586 167 12 total
[root@el-test ~]# strace -p 5817 -c
Process 5817 attached - interrupt to quit
Process 5817 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.009399 0 448564 rt_sigprocmask
0.00 0.000000 0 6 read
------ ----------- ----------- --------- --------- ----------------
100.00 0.009399 448570 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment