summaryrefslogtreecommitdiff
path: root/strace.1
diff options
context:
space:
mode:
authorMark Hills <Mark.Hills@framestore.com>2014-05-28 17:52:40 +0100
committerDmitry V. Levin <ldv@altlinux.org>2014-05-29 18:15:38 +0000
commite53bf23f1c33076090b51184b82af4dd98d0c51c (patch)
treeb41cd1f1b1e0ab69be2cd4f0810426cf4a0f2711 /strace.1
parentac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904 (diff)
downloadstrace-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.14
1 files changed, 4 insertions, 0 deletions
diff --git a/strace.1 b/strace.1
index 6ca4bdaa0..4d26be52b 100644
--- a/strace.1
+++ b/strace.1
@@ -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