• 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: [Q] gprof
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] gprof


  • Subject: Re: [Q] gprof
  • From: Cameron Hayne <email@hidden>
  • Date: Thu, 19 Sep 2002 20:55:40 -0400

On Thursday, September 19, 2002, at 03:02 pm, Mark de Jong wrote:

I saw this question posed in the archives:
Could anyone point me to a description on how to use gprof with a Cocoa progam?
I tried to set OTHER_CFLAGS to -pg in the Build Settings (Project
Builder) but I can nowhere find the gmon.out file.
but there weren't any responses (that I could find).
I tried the same thing as the previous person (above) did to no avail.
I've also tried setting the "Generate profiling code" checkbox. ("Generate debugging symbols" is checked.)
Unfortunately, still no "gmon.out"

First of all, you can read about gprof (and other performance analysis tools) at:
file://localhost/Developer/Documentation/Essentials/Performance/ PerformanceTools/index.html

You should look at the detailed build log (in PB, open the split pane that is just below the build summary) and check that -pg does appear on each of the compile command lines. And then run your program, taking it through a typical usage, and you should find the gmon.out file in the build directory. (I'm guessing on which directory it will appear in from experience on other UNIXen - I haven't tried it on OS X.)

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [Q] gprof
      • From: Mark de Jong <email@hidden>
References: 
 >[Q] gprof (From: Mark de Jong <email@hidden>)

  • Prev by Date: Re(4): Preferences (was: UI: "Direct manipulation" is in conflict with "Forgiveness")
  • Next by Date: Re: [Q] gprof
  • Previous by thread: [Q] gprof
  • Next by thread: Re: [Q] gprof
  • Index(es):
    • Date
    • Thread