Created
February 6, 2018 01:24
-
-
Save scriptnull/13e28a758852430cbe59e77bce6db5da to your computer and use it in GitHub Desktop.
experimenting strace and python
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
| #!/usr/bin/python | |
| x = 1 | |
| print "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 | |
| ------ ----------- ----------- --------- --------- ---------------- | |
| 36.05 0.000283 1 224 159 open | |
| 22.93 0.000180 2 99 read | |
| 10.32 0.000081 1 79 54 stat | |
| 9.30 0.000073 1 98 fstat | |
| 6.50 0.000051 1 65 close | |
| 6.37 0.000050 1 68 rt_sigaction | |
| 2.04 0.000016 2 10 brk | |
| 1.53 0.000012 0 27 mmap | |
| 1.40 0.000011 3 4 2 readlink | |
| 1.27 0.000010 2 5 lstat | |
| 0.64 0.000005 5 1 write | |
| 0.51 0.000004 1 5 1 ioctl | |
| 0.38 0.000003 3 1 sysinfo | |
| 0.25 0.000002 1 3 lseek | |
| 0.13 0.000001 1 1 getcwd | |
| 0.13 0.000001 1 1 getgid | |
| 0.13 0.000001 1 1 geteuid | |
| 0.13 0.000001 1 1 getegid | |
| 0.00 0.000000 0 14 mprotect | |
| 0.00 0.000000 0 1 munmap | |
| 0.00 0.000000 0 1 rt_sigprocmask | |
| 0.00 0.000000 0 8 8 access | |
| 0.00 0.000000 0 1 execve | |
| 0.00 0.000000 0 4 getdents | |
| 0.00 0.000000 0 1 getrlimit | |
| 0.00 0.000000 0 1 getuid | |
| 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.000785 727 224 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment