Tracing multiple threads