Skip to content

Instantly share code, notes, and snippets.

@sata
Created November 14, 2014 23:57
Show Gist options
  • Save sata/3b9b9f3e6f39fa9565d3 to your computer and use it in GitHub Desktop.
Save sata/3b9b9f3e6f39fa9565d3 to your computer and use it in GitHub Desktop.
strace -f -c erl -noshell -eval "[erlang:now() || _X <- lists:seq(1, 1000000)], halt()."
Process 8937 attached
Process 8938 attached
Process 8939 attached
Process 8940 attached
Process 8941 attached
Process 8942 attached
Process 8943 attached
Process 8944 attached
Process 8945 attached
Process 8946 attached
Process 8947 attached
Process 8948 attached
Process 8949 attached
Process 8950 attached
Process 8951 attached
Process 8952 attached
Process 8953 attached
Process 8954 attached
Process 8955 attached
Process 8956 attached
Process 8957 attached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
93.07 15.200973 2947 5158 269 futex
6.10 0.996000 199200 5 1 wait4
0.76 0.124023 14 8891 poll
0.05 0.008000 35 231 7 read
0.02 0.002649 0 65728 65526 close
0.01 0.000992 17 60 munmap
0.00 0.000017 0 5438 sched_yield
0.00 0.000006 3 2 getppid
0.00 0.000000 0 13 write
0.00 0.000000 0 227 71 open
0.00 0.000000 0 424 193 stat
0.00 0.000000 0 43 fstat
0.00 0.000000 0 147 lstat
0.00 0.000000 0 3 lseek
0.00 0.000000 0 196 mmap
0.00 0.000000 0 75 mprotect
0.00 0.000000 0 19 brk
0.00 0.000000 0 89 rt_sigaction
0.00 0.000000 0 38 rt_sigprocmask
0.00 0.000000 0 3 rt_sigreturn
0.00 0.000000 0 4 ioctl
0.00 0.000000 0 1 writev
0.00 0.000000 0 284 36 access
0.00 0.000000 0 8 pipe
0.00 0.000000 0 3 select
0.00 0.000000 0 10 madvise
0.00 0.000000 0 7 dup2
0.00 0.000000 0 3 getpid
0.00 0.000000 0 3 socket
0.00 0.000000 0 2 2 connect
0.00 0.000000 0 1 bind
0.00 0.000000 0 1 getsockname
0.00 0.000000 0 3 setsockopt
0.00 0.000000 0 2 getsockopt
0.00 0.000000 0 20 clone
0.00 0.000000 0 1 vfork
0.00 0.000000 0 7 execve
0.00 0.000000 0 1 kill
0.00 0.000000 0 6 uname
0.00 0.000000 0 26 fcntl
0.00 0.000000 0 26 getdents
0.00 0.000000 0 56 getcwd
0.00 0.000000 0 12 readlink
0.00 0.000000 0 3 getrlimit
0.00 0.000000 0 2 geteuid
0.00 0.000000 0 1 setsid
0.00 0.000000 0 2 sigaltstack
0.00 0.000000 0 2 2 statfs
0.00 0.000000 0 7 arch_prctl
0.00 0.000000 0 3 sched_getaffinity
0.00 0.000000 0 2 set_tid_address
0.00 0.000000 0 13 openat
0.00 0.000000 0 18 set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00 16.332660 87330 66107 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment