it is possible on the iPhone to get the memory consumption for a specific program? For example, I want to know how many memory my program is used without using the instrument tool.
Thanks in advance.
Alex
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d highly recommend using the Memory Monitor instrument to track a particular application’s memory usage.
You can get system-wide memory usage statistics via a function like the following:
This code is copied from Landon Fuller’s post on the topic. Noel Llopis also has a nice writeup on investigating memory usage from within an application. Unfortunately, it doesn’t look like it’s easy to know an application’s memory usage from within that application itself.