Created
February 6, 2018 01:39
-
-
Save scriptnull/2aeea588498893e064f187445800e567 to your computer and use it in GitHub Desktop.
experimenting strace and crystal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x = 1 | |
| puts "value of x is #{x}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| value of x is 1 | |
| % time seconds usecs/call calls errors syscall | |
| ------ ----------- ----------- --------- --------- ---------------- | |
| 28.67 0.000043 4 11 read | |
| 15.33 0.000023 1 27 fcntl | |
| 6.67 0.000010 10 1 socketpair | |
| 6.00 0.000009 5 2 madvise | |
| 5.33 0.000008 1 9 open | |
| 5.33 0.000008 1 10 close | |
| 4.00 0.000006 6 1 write | |
| 3.33 0.000005 1 7 brk | |
| 2.67 0.000004 0 21 mmap | |
| 2.67 0.000004 0 15 mprotect | |
| 2.67 0.000004 1 8 rt_sigaction | |
| 2.67 0.000004 4 1 pipe | |
| 2.00 0.000003 1 3 ioctl | |
| 2.00 0.000003 1 3 getgid | |
| 2.00 0.000003 3 1 epoll_create | |
| 2.00 0.000003 2 2 getrandom | |
| 1.33 0.000002 1 3 getuid | |
| 1.33 0.000002 1 3 geteuid | |
| 1.33 0.000002 1 3 getegid | |
| 1.33 0.000002 2 1 sched_getaffinity | |
| 0.67 0.000001 1 1 getcwd | |
| 0.67 0.000001 1 1 sigaltstack | |
| 0.00 0.000000 0 8 fstat | |
| 0.00 0.000000 0 1 munmap | |
| 0.00 0.000000 0 2 rt_sigprocmask | |
| 0.00 0.000000 0 8 8 access | |
| 0.00 0.000000 0 1 execve | |
| 0.00 0.000000 0 2 getrlimit | |
| 0.00 0.000000 0 1 arch_prctl | |
| 0.00 0.000000 0 1 set_tid_address | |
| 0.00 0.000000 0 1 set_robust_list | |
| ------ ----------- ----------- --------- --------- ---------------- | |
| 100.00 0.000150 159 8 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment