views:

597

answers:

4

Is there such a thing as a Memory profiler for Iphones apps?

I'd like to know what objects are in memory at any moment.

+3  A: 

Shark is a memory profiler that comes with the Apple Developer Tools, it can be used with both iPhone and Mac applications. See: Shark User Guide (iPhone)

zachthehack
+6  A: 

You'll want to use Instruments to profile your App. You can run your app with different templates.

In XCode, select Run > Start With Performance Tool > Object Allocations

Reed Olsen
+2  A: 

Technically, I think Apple is phasing out Shark in favor of Instruments. Instruments provides memory profiling tools (allocated objects, leaks, etc...) and can connect to the iPhone Simulator or a remote device to profile iPhone apps. I've never tried to use it to show the actual objects in memory though - just allocation/deallocation activity.

Ben Gotow
Not really phasing out - they cover slightly different scopes. That being said, Instruments is much more apt for this task than Shark is.
Dan Keen
A: 

Hi

can any one guide me how to do the memory profiling??

With Regards

siva