Using "-c" and CTRL+C
Dmitry V. Levin
ldv at altlinux.org
Tue May 13 15:49:57 UTC 2014
On Fri, May 09, 2014 at 12:42:02PM +0200, Bud Millwood wrote:
> I think I've located my problem - it's a question of choosing the right
> pid. I'm debugging a multi-threaded application, and "ps" doesn't show the
> pid for each thread, whereas htop does. Choosing the pid of a specific
> thread causes strace to give me the statistics I'm looking for.
By the way, strace -f -p pid attaches to all threads listed in
/proc/pid/task/, so you can just use -f option.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140513/192abf27/attachment.bin>
More information about the Strace-devel
mailing list