When using strace to attach to a process that is running many threads, use the following format:
strace -f -c -p PID -o /tmp/outfile.strace
This will capture system calls from all threads within the process.
When using strace to attach to a process that is running many threads, use the following format:
strace -f -c -p PID -o /tmp/outfile.strace
This will capture system calls from all threads within the process.