tags:

views:

375

answers:

1

Hi,

I have a XCode project. I can build and debug with it. Is it possible for me to use Shark to do profiling of my application (e.g. find out what % of the time spent on what method? How many objects are created and destroyed? Where does each object created?

Thank you.

+2  A: 

Yes, you can run Shark on your application to get time profile information; see for example this Apple tutorial. dtrace is another option; but has a steeper learning curve.

For more general profiling, like object allocation, you want to use Instruments (which is also part of Apple's developer tools suite).

smorgan