RollRoll
RollRoll

Reputation: 8462

How to monitor how much memory my App is consuming?

From time to time, different Apps I am developing close itself, I'm assuming it is because of memory usage that the IOS kills once it is to high.

Even if it is not because of memory I will like to find out how much memory my app is consuming every step of the way.

Update: Thanks guys, I understand Instruments purpose, but my Idea was to monitor memory while I am using the app not connected to the computer. For instance, something like placing a UILabel Text content with the current memory consumption.

Any directions?

Upvotes: 2

Views: 905

Answers (3)

user1002909
user1002909

Reputation: 174

Let's using instrument to profile your application. Using Allocation mode, you can find out : - how much memory your app using. - how many objects of your app are allocated in memory. - Which objects (GUI, NSOBjects, bla bla bla) are allocated in memory. - Your app using more or less memory after you do somethings in your app.

More detail: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html

Upvotes: 1

Egor Chiglintsev
Egor Chiglintsev

Reputation: 1252

Apple Instruments User Guide is a good way to start. There is a chapter devoted to locating memory issues. To monitor memory consumption, Allocations, Leaks and Activity Monitor instruments will be most helpful.

Upvotes: 2

edzio27
edzio27

Reputation: 4140

Use 'instruments'. Run -> Profile

Upvotes: 1

Related Questions