diff options
author | Mark Hills <Mark.Hills@framestore.com> | 2014-05-28 17:52:40 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-05-29 18:15:38 +0000 |
commit | e53bf23f1c33076090b51184b82af4dd98d0c51c (patch) | |
tree | b41cd1f1b1e0ab69be2cd4f0810426cf4a0f2711 /strace.1 | |
parent | ac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904 (diff) | |
download | strace-e53bf23f1c33076090b51184b82af4dd98d0c51c.tar.gz |
Optionally produce stats on syscall latency
Time spent in system time is not useful where a syscall depends on some
non-CPU resource, eg. typically open() or stat() to a network drive.
This patch adds a new flag (-w) to produce a summary of the time
difference between beginning and end of the system call (ie. latency)
This functionality has been useful to profile slow processes that
are not CPU-bound.
Signed-off-by: Mark Hills <mark.hills@framestore.com>
Diffstat (limited to 'strace.1')
-rw-r--r-- | strace.1 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -290,6 +290,10 @@ of seconds since the epoch. Show the time spent in system calls. This records the time difference between the beginning and the end of each system call. .TP +.B \-w +Summarise the time difference between the beginning and end of +each system call. The default is to summarise the system time. +.TP .B \-v Print unabbreviated versions of environment, stat, termios, etc. calls. These structures are very common in calls and so the default |