willc2
willc2

Reputation: 39701

Using Xcode 3.2, which performance tool to see how much memory my iPhone app is using?

Also, is running an app in the simulator sufficient to get a ball park estimate or will I get very different values from running on the device?

Upvotes: 1

Views: 1067

Answers (2)

Tyler
Tyler

Reputation: 28874

The default (and a very good) tool is Instruments, which comes with the SDK. Here is Apple's doc on Instruments.

Memory usage on the simulator is generally the same, although if you are using OpenGL ES, the simulator has significantly less memory errors (and better performance) on the simulator. So the general rule of thumb is: it's ok to test your memory on the simulator, except for OpenGL ES usage.

Upvotes: 3

Philippe Leybaert
Philippe Leybaert

Reputation: 171914

When you run the application using Instruments (Object Allocations) in the simulator, that should give you a very accurate memory usage picture.

Upvotes: 1

Related Questions