• 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: Shark can't find source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Shark can't find source code (From: Fred Leboucher <email@hidden>)

  • Prev by Date: Re: One Target, separate apps
  • Next by Date: Re: External Editor / ODB Suite
  • Previous by thread: Re: Shark can't find source code
  • Next by thread: understanding build styles
  • Index(es):
    • Date
    • Thread