Hi,
I've been using the Thread Viewer
(Developer->Applications->Performance Tools) to analyze the performance
of an applicaton. The multithreaded app is running in XCode 2.1
debugger and via the Viewer I can see one thread is running much more
than the others. I would like to examine this thread in the debugger
in detail but how do I map from the Mach Thread number in the Thread
Viewer to the Pthreads displayed in the XCode debugger ?
I can see that thread 04d07 is consuming a lot of cycles but the
debugger only shows threads as 1-23. Also the way this app is
structured ALL the threads run the same base thread code so I cannot
look at the stack snap shots in the Viewer to guess which pthread it
might be.
Is there something inside the pthread structure that has the Mach
thread number ? I can stop the app in the debugger and I do have the
pthread data structure to look at. If I have to look at each one it's
not a big deal but if you know where to look in the structure it would
help a great deal. Thanks.
--jim