Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Thread Viewer question

 
   Mac (Home) -> Tools RSS
Next:  [ANN] CPLAT_Mac II 2.0 Released  
Author Message
vze35xda

External


Since: Sep 17, 2005
Posts: 53



(Msg. 1) Posted: Tue Nov 08, 2005 5:16 am
Post subject: Thread Viewer question
Archived from groups: comp>sys>mac>programmer>tools (more info?)

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
Back to top
Login to vote
vze35xda

External


Since: Sep 17, 2005
Posts: 53



(Msg. 2) Posted: Tue Nov 08, 2005 6:09 am
Post subject: Re: Thread Viewer question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

And another thing... I've tried calling pthread_mach_thread_np() and
putting that value into my data structure. This is supposed to be the
kernel thread (Mach thread) under the pthread. This value doesn't seem
to match anything in Thread Viewer. I've been looking at the source of
Libc-391.2.3 from Darwin (pthread source is here). And it does put the
Mach thread value into the struct when it creates the thread and
pthread_mach_thread_np() will get it back.

So the question I have now is, what are the values shown in Thread
Viewer ?

--jim
Back to top
Login to vote
Display posts from previous:   
Related Topics:
newbie question about xcode script targets - I have an xcode target that is just a simple shell script that runs a conversion program against a list of files, like *.def and *.mod. The script runs when I select it and say build. My question is, how do I see what the shell script is doing; at..

[ANN] Free Online Programming Conference - What: Runtime Revolution Free Online Programming Conference Where: http://support.runrev.com/scriptingconferences/ When: 15:30 GMT, Saturday 6th August Who can attend: Anyone! Freebies: Yes! The conference is free, there is a free piece of sample..

Java development on OS X; XCode vs The World. - I'm doing some Java development on my OS X machines (Pismo/400/320MB, Quicksilver/733/1.2GB, both running 10.3.9). XCode ont he Pismo is dog slow but on the QS is relatively better. Are there any other alternatives to Java? Does CodeWarrior do it? ..

[ANN] CPLAT_Mac II 2.0 Released - ksoft (www.ksoft.net) is pleased to announce the release of CPLAT_Mac II 2.0, a full featured, low-cost C++ framework. CPLAT_Mac II is a modern C++ framework for doing MacOS development. This is a MacOS only version of the CPLAT cross-platform..

XCode - Key command to close all windows? - Hi, Is there a way to close all open editor windows within xcode 2.x? (The equivalent of opt-cmd-w that works in most apps and the Finder) Thanks Steve
       Mac (Home) -> Tools All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact