Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. public static void testSTrace(){
  2. long c = 0;
  3. for (int i = 0; i < 1000; i++){
  4. long start = System.nanoTime();
  5.  
  6. try{Thread.sleep(0, 100);}catch(Exception e){/*cry*/}
  7.  
  8. long stop = System.nanoTime();
  9.  
  10. log.info("start : " +start+" stop : "+stop);
  11. }
  12. }
  13.  
  14. clone(child_stack=0xb7c9f4c4,
  15. flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|
  16. CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED,
  17. parent_tidptr=0xb7c9fbf8, {entry_number:6, base_addr:0xb7c9fbb0,
  18. limit:1048575, seg_32bit:1,
  19. contents:0, read_exec_only:0,
  20. limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb7c9fbf8) = 8351 futex(0xb7c9fbf8, FUTEX_WAIT, 8351, NULL
  21.  
  22. -f -- follow forks, -ff -- with output into separate files
  23. -F -- attempt to follow vforks, -h -- print help message
  24.  
  25. strace -fF /bin/appletviewer test.html
  26.  
  27. [pid 8401] gettimeofday({1248700317, 550296}, NULL) = 0
  28. [pid 8401] gettimeofday({1248700317, 550401}, NULL) = 0
  29. [pid 8401] gettimeofday({1248700317, 550500}, NULL) = 0
  30. [pid 8401] gettimeofday({1248700317, 550626}, NULL) = 0
  31. [pid 8401] gettimeofday({1248700317, 550883}, NULL) = 0
  32. [pid 8401] gettimeofday({1248700317, 550993}, NULL) = 0
  33. [pid 8401] gettimeofday({1248700317, 551093}, NULL) = 0
Add Comment
Please, Sign In to add comment