how to programmatically dump call stack of ALL threads, not just current thread [NSThread callStackSymbols]

197 Views Asked by At

how to NSLog the call stacks of ALL threads, not just the current thread?

(I'm aware of [NSThread callStackSymbols], which is useful)


What I'm trying to achieve:

whenever a specific condition happens:

  // on main thread
  if ( timeout )
  {
      NSLog ALL threads call stacks
  }

I'm trying to track down a hard-to-reproduce bug which likely has multiple causes.

(Namely, I need to NEVER show the desktop while reconfiguring full screen NSWindows for multiple NSScreens)

I know that certain device drivers can cause my bug, but I'm beginning to suspect that nearly all device drivers can cause it, including audio, video, camera, usb, bluetooth, 3rd party, etc.

0

There are 0 best solutions below