Re: Shark can't find source code
Re: Shark can't find source code
- Subject: Re: Shark can't find source code
- From: Paul Russell <email@hidden>
- Date: Mon, 12 Jul 2004 20:53:16 -0700
On Jul 12, 2004, at 12:14 PM, Fred Leboucher wrote:
Hi
I'm trying to use Shark to profile my app (written in C++, and
compiled through a Makefile, thus not using XCode). I run the app from
Shark, then it processes the samples, but most of the symbol list says
"UNREADABLE_PAGE_0xpageaddr"...
Problem is, all those unreadable pages are from my code, since I can't
find any of my functions anywhere in the list. I compiled the app
using the -g option in gcc for every source file, I've set the working
dir in Shark to the one that contains the source code, the app and the
data needed by the app.
What should I do to see my functions and code in Shark ?
Do you have -g when you link ?
Also, you need to make sure that your app doesn't exit before Shark has
finished processing its samples. E.g. when I'm using Shark to profile
command line stuff I usually put a temporary gets() at the end of
main() so that the process will not die before Shark has done its
stuff.
Paul
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.