Created
February 6, 2018 01:15
-
-
Save scriptnull/dd0e4629245a3d6f8d756dbbeb85a237 to your computer and use it in GitHub Desktop.
experimenting strace and node.js
This file contains 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
#!/usr/bin/node | |
var x = 1 | |
console.log("value of x is ", x) |
This file contains 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 | |
------ ----------- ----------- --------- --------- ---------------- | |
23.06 0.000101 1 87 mmap | |
20.09 0.000088 22 4 clone | |
17.35 0.000076 3 27 munmap | |
13.24 0.000058 12 5 futex | |
6.39 0.000028 1 35 rt_sigaction | |
3.65 0.000016 0 44 mprotect | |
2.97 0.000013 1 26 9 ioctl | |
2.51 0.000011 11 1 readlink | |
1.83 0.000008 0 23 open | |
1.83 0.000008 4 2 pipe2 | |
1.14 0.000005 0 11 brk | |
0.91 0.000004 0 23 fstat | |
0.91 0.000004 4 1 epoll_create1 | |
0.68 0.000003 3 1 poll | |
0.46 0.000002 0 22 read | |
0.46 0.000002 1 3 write | |
0.46 0.000002 0 20 close | |
0.46 0.000002 0 5 rt_sigprocmask | |
0.46 0.000002 1 2 getuid | |
0.46 0.000002 2 1 eventfd2 | |
0.23 0.000001 1 1 geteuid | |
0.23 0.000001 1 1 setrlimit | |
0.23 0.000001 1 1 clock_getres | |
0.00 0.000000 0 1 stat | |
0.00 0.000000 0 3 lstat | |
0.00 0.000000 0 16 16 access | |
0.00 0.000000 0 1 execve | |
0.00 0.000000 0 1 getcwd | |
0.00 0.000000 0 2 getrlimit | |
0.00 0.000000 0 1 getgid | |
0.00 0.000000 0 1 getegid | |
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 | |
0.00 0.000000 0 2 dup3 | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000438 377 25 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment