How to generate profiling code in xcode 3

Joined
Jul 24, 2009
Messages
1
Reaction score
0
Points
1
Hi,
I'm trying to generate profiling code that I can look at in gprof using xcode 3 on an intel based macbook (running 10.5). I can't get a gmon.out file for the life of me. Even if i compile directly with gcc from the command line. Any ideas why this won't work? Any ideas how to utilize the traditional -pg option to get profiling code?

Thanks,
Sterling
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
You might want to look into Instruments (supplied) and CLANG analyzer (a free download).

Sorry, I don't know about gprof. Actually I'm not familiar enough with the above tools, but they are what Cocoa developers seem to be into.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top