Skip to content

Instantly share code, notes, and snippets.

@sata
Created November 14, 2014 23:56
Show Gist options
  • Save sata/e56365a672e4098f3215 to your computer and use it in GitHub Desktop.
Save sata/e56365a672e4098f3215 to your computer and use it in GitHub Desktop.
strace -c erl -noshell -eval "[erlang:now() || _X <- lists:seq(1, 1000000)], halt()."
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.000012 0 41 close
0.00 0.000000 0 42 read
0.00 0.000000 0 1 write
0.00 0.000000 0 30 open
0.00 0.000000 0 2 stat
0.00 0.000000 0 16 fstat
0.00 0.000000 0 147 lstat
0.00 0.000000 0 1 lseek
0.00 0.000000 0 91 mmap
0.00 0.000000 0 40 mprotect
0.00 0.000000 0 14 munmap
0.00 0.000000 0 9 brk
0.00 0.000000 0 77 rt_sigaction
0.00 0.000000 0 34 rt_sigprocmask
0.00 0.000000 0 1 rt_sigreturn
0.00 0.000000 0 2 ioctl
0.00 0.000000 0 16 16 access
0.00 0.000000 0 3 pipe
0.00 0.000000 0 27 sched_yield
0.00 0.000000 0 2 getpid
0.00 0.000000 0 17 clone
0.00 0.000000 0 3 execve
0.00 0.000000 0 1 wait4
0.00 0.000000 0 2 uname
0.00 0.000000 0 6 fcntl
0.00 0.000000 0 18 getdents
0.00 0.000000 0 12 readlink
0.00 0.000000 0 2 getrlimit
0.00 0.000000 0 1 geteuid
0.00 0.000000 0 1 getppid
0.00 0.000000 0 3 arch_prctl
0.00 0.000000 0 1 futex
0.00 0.000000 0 3 sched_getaffinity
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 9 openat
0.00 0.000000 0 1 set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00 0.000012 677 16 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment