Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread viewer tool ?



Yes.  The 'sample' command line tool ships on the User CD so that end users can provide information about performance issues.

By default, Xcode strips all symbols from executables like .app's and command line tools, but does not strip external symbols from relocatable binary images like dynamic libraries / frameworks and bundles.  If users send sample data back, you can use /usr/bin/atos to translate addresses from the executable into symbols in a symbol-rich version of the app (provided it is built with identical flags as the shipping version of the app).

- Dave



On Oct 25, 2005, at 11:58 AM, Daniel Jalkut wrote:

Will either of these solutions allow his end-user to capture data without first installing developer tools. I am reading that requirement into his question...

Daniel

On Oct 25, 2005, at 12:49 PM, Dave Payne wrote:

Mark, try /usr/bin/sample

See the sample(1) man page, which is slightly incorrect in that the samplingInterval argument is not required (it defaults to 10 milliseconds).

/Developer/Applications/Performance Tools/Sampler.app  uses the same mechanism that the 'sample' command line tool does.  You can also try the 'shark' command line tool and Shark.app;  Shark.app has more features than Sampler.app.  For quick sampling from the command line, 'sample' often suffices.

- Dave


Mark Thomas wrote:

Yes know about that tool, but it takes some understanding on how it works,
and also getting information sent back is difficult, for remote debugging.

That's why I remember about the command line tool, I used on a Solaris
system, as I could capture all the output into a text file, and have the
user send me that.

Thanks
Mark.

Message: 4
Date: Mon, 24 Oct 2005 16:31:13 -0400
From: Rich Siegel <email@hidden>
Subject: Re: Thread viewer tool ?
Message-ID:
Content-Type: text/plain; charset=US-ASCII

On 10/24/05 at 9:18 PM, Mark Thomas <email@hidden> wrote:

  Does anyone know if there is a command line tool which can be ran
  on a particular process and will dump the state of the current
  process threads with stack crawls ..etc ?, as I use to use one on a
  solaris system, but cannot find the equivalent with Xcode ?.

Well, GDB can do that if you attach to a process, but there's also
/Developer/Applications/Performance Tools/Thread Viewer.

Enjoy,

R.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Thread viewer tool ? (From: Dave Payne <email@hidden>)
 >Re: Thread viewer tool ? (From: Daniel Jalkut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.