It might be that I haven't been clear in my request.  What I want is:
1. No printouts while the program is running (as provided by -c).
2. A summary at the end (as provided by -c).
3. The summary should report syscall wall clock times (as provided by -T).

-C doesn't help; it just adds per-call printouts (which I don't want).

If I do "strace -C -T sleep 1", the summary at the end still says that
nanosleep took no time:

  -nan    0.000000           0         1           nanosleep

So this still doesn't work unfortunately.

johan@transwarp:~$ strace -V
strace -- version 4.5.20

  Regards /Johan

2011/1/14 Dmitry V. Levin <l...@altlinux.org>:
> On Tue, Nov 06, 2007 at 04:45:57PM +0100, Johan Walles wrote:
>> 2007/11/1, Roland McGrath <rol...@redhat.com>:
>> > -T requests timing information in the line printed for each call made.
>> > -c requests that those lines never be printed, so -T does not mean anything
>> > with -c.  The times printed by -T are real (wall clock) time.  As the
>> > description you quoted says (on Linux), -c collects system time (CPU time
>> > in kernel mode) instead.
>>
>> In that case I've mis-understood the docs.  I'll open a new
>> enhancement request on strace.
>
> Starting with strace-4.5.20, there is a -C option to combine regular
> and -c output.  You can use it to achieve the desired effect:
>
> $ strace -C -T sleep 2 2>&1 | grep nanosleep
> nanosleep({2, 0}, NULL)                 = 0 <2.002724>
>  -nan    0.000000           0         1           nanosleep
>
> If you feel that man page is not quite clear on the subject,
> please suggest a better wording.
>
>
> --
> ldv
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to