I need to find a way to enumerate all my iPhone application's active threads. This is strictly for debug purposes. Private APIs, if any, are welcome as well. I know I can see all the current threads in the debugger window, but I would like to have access to开发者_开发知识库 the actual NSThread objects, if that is at all possible.
I think that PLcrashreporter is probably what you are looking for - if you need to understand how it can access all of the active threads then I suggest you consider looking through the source code there:
http://code.google.com/p/plcrashreporter/
Maybe you can have a look at what has already been answered here :
How To Loop Through All Active Thread in iPad app
PLCrashReporter is referenced as well here but some other things built on top of it.
精彩评论