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. > > So it seems that if I run "strace -c" on a pid that is blocked in a system > call, it doesn't print statistics at all. It's a little misleading; maybe > it should print out statistics, and just show that 100% of the time it was > in that call. Or maybe it can't detect the current call if strace was > started after the call was made?
strace -c prints statistics for exited syscalls. If no syscall exited (for the given personality), no statistics is printed. -- ldv
pgpFvtTgWEBQ5.pgp
Description: PGP signature
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel