Re: Can't see source code in Shark
Re: Can't see source code in Shark
- Subject: Re: Can't see source code in Shark
- From: Rick Altherr <email@hidden>
- Date: Fri, 20 Apr 2007 08:50:09 -0700
FYI: -pg won't make a bit of difference to Shark. It does, however,
make a different to Saturn.
--
Rick Altherr
Architecture and Performance Group
email@hidden
On Apr 20, 2007, at 3:34 AM, Fred Leboucher wrote:
I believe I solved this by using the '-p' option, which enables
gprof. Of course, you won't use gprof but Shark to profile your code.
Hope this helps...
Fred
Jerry a écrit :
When profiling with Shark on my Intel Mac, I never get to see the
source code of my application. The "Source Code" button is greyed
out. This works fine on a PPC machine.
I've looked back over the archives and seen that many other people
have had this problem, but I didn't see any solutions. I've
checked that I'm compiling with debug symbols on, stripping off.
I've tried using DWARF and STABS debug symbols. I've tried adding
a Shark search path to point to the folder containing source files.
I'm on a MacBook Pro with OS X 10.4.9, Shark 4.4.4. The same
project on a G5 and Shark 4.3.3 shows source code just fine (4.3.3
had the same problem on the MacBook before I updated to 4.4.4 in
an attempt to solve the problem).
Here's the relevant compiler flags:
/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-
strings -fasm-blocks -O0 -Wreturn-type -Wformat -Wmissing-braces -
Wunused-function -Wunused-label -DDEBUG=1 -fmessage-length=0 -
ftree-vectorize -mmacosx-version-min=10.3 -gdwarf-2
Any ideas?
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40free.fr
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:
40apple.com
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:
This email sent to email@hidden