Guest User

Untitled

a guest
Oct 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. $ strace -c ls
  2. file1 file2
  3. % time seconds usecs/call calls errors syscall
  4. ------ ----------- ----------- --------- --------- ----------------
  5. 100.00 0.000017 1 18 mprotect
  6. 0.00 0.000000 0 8 read
  7. 0.00 0.000000 0 1 write
  8. 0.00 0.000000 0 10 open
  9. 0.00 0.000000 0 13 close
  10. 0.00 0.000000 0 1 stat
  11. 0.00 0.000000 0 11 fstat
  12. 0.00 0.000000 0 27 mmap
  13. 0.00 0.000000 0 2 munmap
  14. 0.00 0.000000 0 3 brk
  15. 0.00 0.000000 0 2 rt_sigaction
  16. 0.00 0.000000 0 1 rt_sigprocmask
  17. 0.00 0.000000 0 2 ioctl
  18. 0.00 0.000000 0 1 1 access
  19. 0.00 0.000000 0 1 execve
  20. 0.00 0.000000 0 2 getdents
  21. 0.00 0.000000 0 1 getrlimit
  22. 0.00 0.000000 0 2 statfs
  23. 0.00 0.000000 0 1 arch_prctl
  24. 0.00 0.000000 0 1 set_tid_address
  25. 0.00 0.000000 0 1 openat
  26. 0.00 0.000000 0 1 set_robust_list
  27. ------ ----------- ----------- --------- --------- ----------------
  28. 100.00 0.000017 110 1 total
  29.  
  30. $ ltrace -c ls
  31. file1 file2
  32. % time seconds usecs/call calls function
  33. ------ ----------- ----------- --------- --------------------
  34. 11.42 0.001012 84 12 __ctype_get_mb_cur_max
  35. 11.24 0.000996 124 8 getenv
  36. 10.54 0.000934 93 10 __errno_location
  37. 9.96 0.000883 98 9 malloc
  38. 6.03 0.000534 106 5 memcpy
  39. 5.99 0.000531 106 5 readdir
  40. 4.60 0.000408 408 1 setlocale
  41. 3.77 0.000334 83 4 free
  42. 3.70 0.000328 82 4 __freading
  43. 3.26 0.000289 96 3 __overflow
  44. 2.95 0.000261 87 3 strlen
  45. 2.66 0.000236 118 2 fclose
  46. 2.46 0.000218 109 2 fwrite_unlocked
  47. 2.05 0.000182 182 1 strrchr
  48. 1.90 0.000168 84 2 __fpending
  49. 1.87 0.000166 83 2 fflush
  50. 1.87 0.000166 83 2 fileno
  51. 1.52 0.000135 135 1 isatty
  52. 1.43 0.000127 127 1 getopt_long
  53. 1.41 0.000125 125 1 ioctl
  54. 1.35 0.000120 120 1 textdomain
  55. 1.35 0.000120 120 1 bindtextdomain
  56. 1.29 0.000114 114 1 opendir
  57. 1.22 0.000108 108 1 closedir
  58. 1.21 0.000107 107 1 __cxa_atexit
  59. 1.05 0.000093 93 1 strcoll
  60. 0.95 0.000084 84 1 realloc
  61. 0.94 0.000083 83 1 _setjmp
  62. ------ ----------- ----------- --------- --------------------
  63. 100.00 0.008862 86 total
Add Comment
Please, Sign In to add comment