• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Sampler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Sampler


  • Subject: Re: Using Sampler
  • From: John Stiles <email@hidden>
  • Date: Wed, 27 Sep 2006 16:21:58 -0700

On Sep 27, 2006, at 4:16 PM, Nick Zitzmann wrote:


On Sep 27, 2006, at 4:47 PM, Alan Smith wrote:

In *addition* to the function calls, I want to know what is being
passed to each method/function.

If you're using a PPC Mac, then AFAIK you can only acquire the arguments passed into the current top of the stack. They are stored in registers $r3, $r4, and so on.


If you're using an Intel Mac, then arguments are stored in the stack (at least on IA-32), and you can acquire them by examining registers $ebp+8, $ebp+12, and so on.

Right, but I don't think there is a way to get this info via Sampler. You have to use gdb.
Also remember that Sampler/Shark won't tell you every call that happened. It'll tell you about the calls that took a significant amount of time, but if you are trying to reverse engineer something, there are probably going to be some steps which don't show up via the Sampler approach (because they happen quickly or rarely) but are still highly important.


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


  • Follow-Ups:
    • Re: Re: Using Sampler
      • From: "Alan Smith" <email@hidden>
References: 
 >Using Sampler (From: "Alan Smith" <email@hidden>)
 >Re: Using Sampler (From: Dominik Pich <email@hidden>)
 >Re: Using Sampler (From: Mike Abdullah <email@hidden>)
 >Re: Re: Using Sampler (From: "Alan Smith" <email@hidden>)
 >Re: Using Sampler (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Using Sampler
  • Next by Date: sluggish NSSlider with vsynced opengl
  • Previous by thread: Re: Using Sampler
  • Next by thread: Re: Re: Using Sampler
  • Index(es):
    • Date
    • Thread