• 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: Problem with (Saturn) Profiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with (Saturn) Profiler


  • Subject: Re: Problem with (Saturn) Profiler
  • From: Rick Altherr <email@hidden>
  • Date: Wed, 4 Feb 2009 12:03:18 -0800


On Feb 4, 2009, at 11:12 AM, Dieter Oberkofler wrote:


On 04.02.2009, at 19:03, Rick Altherr wrote:


On Feb 4, 2009, at 1:49 AM, Dieter Oberkofler wrote:

Thank you!


On 03.02.2009, at 19:47, Rick Altherr wrote:


On Feb 3, 2009, at 8:43 AM, Dieter Oberkofler wrote:

Still stuck with Saturn:

1) After initializing the application with initSaturn(""), it seems as if the profiling would already have started and within a few seconds around 500MB of data is collected.

If you use -pg, the moninit() method in libSaturn calls initSaturn() and startSaturn(). That means that Saturn will start tracing as soon as the bundle is loaded.


If you use -finstrument-functions, any function not decorated with "__attribute__((__no_instrument_function__))" will call into Saturn to record data. If that happens before a call to initSaturn() is made, initSaturn() and startSaturn() are called for you. If you decorate your bundle's initializer method with that, then it won't accidentally start Saturn automatically.
I'm using -finstrument-functions because this is the only one available on ppc and intel.
Could you please elaborate on how to "decorate your bundle's initializer method"?
I have not not found any documentation on how to do so in general and "__attribute__((__no_instrument_function__))" specifically. Is there any?




Simply put __attribute__((__no_instrument_function__)) between the return type and the function name. This is mentioned in the description of -finstrument-functions in the gcc man page.

...and how would I decorate the "bundle's initializer method"? I cannot find any information about a bundle initializer.



I was assuming you were building a plugin of some sort. I'm simply referring to the first method that will be run in your binary.


--
Rick Altherr
Architecture and Performance Group
email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Problem with (Saturn) Profiler
      • From: Dieter Oberkofler <email@hidden>
References: 
 >Re: Problem with (Saturn) Profiler (From: Dieter Oberkofler <email@hidden>)
 >Re: Problem with (Saturn) Profiler (From: Rick Altherr <email@hidden>)
 >Re: Problem with (Saturn) Profiler (From: Dieter Oberkofler <email@hidden>)
 >Re: Problem with (Saturn) Profiler (From: Rick Altherr <email@hidden>)
 >Re: Problem with (Saturn) Profiler (From: Dieter Oberkofler <email@hidden>)

  • Prev by Date: Re: Problem with (Saturn) Profiler
  • Next by Date: Re: Info.plist: ${PRODUCT_NAME} versus ${PRODUCT_NAME:identifier}
  • Previous by thread: Re: Problem with (Saturn) Profiler
  • Next by thread: Re: Problem with (Saturn) Profiler
  • Index(es):
    • Date
    • Thread