开发者

Finding all active threads

开发者 https://www.devze.com 2023-01-13 07:38 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消