Skip to content

Instantly share code, notes, and snippets.

@posulliv
Created April 25, 2013 05:32
Show Gist options
  • Save posulliv/5457704 to your computer and use it in GitHub Desktop.
Save posulliv/5457704 to your computer and use it in GitHub Desktop.
some strace output

command run

strace -c -f -p PID

output

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 85.13  541.941340        3285    164958      4552 futex
  6.79   43.238702      116233       372           nanosleep
  5.85   37.214322      115215       323           select
  1.36    8.650171         105     82112           fsync
  0.64    4.072254      581751         7         6 restart_syscall
  0.10    0.642362          14     46369           munmap
  0.03    0.181115           1    246685           gettimeofday
  0.03    0.163187           1    184085           pread
  0.02    0.150513           3     59864           pwrite
  0.01    0.088095           1    127449           fstat
  0.01    0.076649           3     23348           write
  0.01    0.066309           1     47674           open
  0.01    0.061040           1     46369           mmap
  0.00    0.027564           1     47790           close
  0.00    0.012713           1      9855        29 read
  0.00    0.012001          81       148           io_submit
  0.00    0.011276           2      7071           setsockopt
  0.00    0.004000          39       102           io_getevents
  0.00    0.000216           0      1046           madvise
  0.00    0.000034           0      2928      2928 access
  0.00    0.000000           0       174           stat
  0.00    0.000000           0       485           mprotect
  0.00    0.000000           0        87           sched_yield
  0.00    0.000000           0        58           fcntl
  0.00    0.000000           0       174           statfs
------ ----------- ----------- --------- --------- ----------------
100.00  636.613863               1099533      7515 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment