Sunday, August 7, 2011

How to capture good out put from strace command?

■ Requirement : capturing strace output
■ OS Environment : Linux[RHEL, Centos]
■ Application:strace
■ Implementation Steps : 

$ touch /tmp/strace_op
$ strace -s 128 -fvTttto /tmp/strace_op command

NOTE : Analysis content of the file /tmp/strace_op. Note that time stamp has been captured here. So, you can check which system call took much time. If any command takes much time then you can do strace to that command and analysis the output.

$strace -fvTtt  

No comments:

Post a Comment