Re: Problem with (Saturn) Profiler
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