Re: Problem with (Saturn) Profiler
Re: Problem with (Saturn) Profiler
- Subject: Re: Problem with (Saturn) Profiler
- From: Rick Altherr <email@hidden>
- Date: Wed, 11 Feb 2009 10:32:01 -0800
On Feb 11, 2009, at 1:23 AM, Dieter Oberkofler wrote:
1) I have a main in my application but when trying to "decorate" main like: --- int __attribute__((__no_instrument_function__)) main(int argc, char* argv[]) { // ...
} --- I get the following compiler error: error: can't set '__no_instrument_function__' attribute after definition.
What does work, is to put it in a declaration before the actual implementation. --- int __attribute__((__no_instrument_function__)) main(int argc, char* argv[]); int main(int argc, char* argv[]) { // ...
} --- Is this how it is supposed to be used?
Yes, it decorates the prototype.
2) Unfortunately this also does not seem to help with my problems: 2.1) I still get two Saturn directories but only one start/stopSaturn was used 2.2) I still see no functions in the Saturn front end as if there is no debug information
3) I have now been using 3.1) The __attribute__((__no_instrument_function__)) decorator in main 3.2) initSaturn("/Saturn"); once as the first command in main 3.3) in one singlelocation in the application I invoke startSaturn() and endSaturn() to profile this specific section of code
There appears to be a bug where a call to endSaturn() doesn't actually stop the profiling, but rather switches to a new file. So, 2 files is "right".
The lack of functions in Saturn front end is harder to tell what when wrong. There should be a .sig file in the Saturn output folder. It should be generated when the program quits. If that file doesn't exist, the frontend will have no knowledge of what binaries were loaded in the process. If that file does exist, I'd need to see what is in it. -- Rick Altherr Architecture and Performance Group email@hidden
-- Rick Altherr Architecture and Performance Group
|
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