有人知道cygwin中strace
的输出格式吗?在我看来,通过对选项的试验,从某种意义上说,自过程开始以来,前两列是微秒,但是我找不到关于它们是什么或应如何使用的任何解释。我认为它们是,第一个数字是完成系统调用的usec,第二个数字是自进程启动以来的usec。有人肯定知道吗?
excerpt from strace -f ls
35 33002 [main] ls 2364 void: 0x0 = signal (3, 0x1)
38 33040 [main] ls 2364 fhandler_base::close_with_arch: line 1180: /dev/pty1<0x180335700> usecount + -1 = 1
38 33078 [main] ls 2364 fhandler_base::close_with_arch: not closing archetype
41 33119 [main] ls 2364 init_cygheap::close_ctty: closing cygheap->ctty 0x180335700
39 33158 [main] ls 2364 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
38 33196 [main] ls 2364 fhandler_pty_slave::cleanup: /dev/pty1 closed, usecount 0
39 33235 [main] ls 2364 fhandler_pty_slave::close: closing last open /dev/pty1 handle
121 33356 [main] ls 2364 fhandler_console::free_console: freed console, res 1
答案 0 :(得分:0)
first =两个strace输出之间的时间
秒=程序开始以来的累积时间
35 33002 [main] ls 2364 void: 0x0 = signal (3, 0x1)
38+33002=33040
38 33040 [main] ls 2364 fhandler_base::close_with_arch: line 1180:
38+33040=33078
38 33078 [main] ls 2364 fhandler_base::close_with_arch: not closing archetype
41+33079=33119
41 33119 [main] ls 2364 init_cygheap::close_ctty: closing cygheap->ctty 0x180335700