-4

Possible Duplicates:
Programmatically retrieve memory usage on iPhone
How to detect a memory leak?

Hey I want to know the memory allocation in my app programatically in iPhone SDK . Need Help.

Community
  • 1
  • 1
Arsalan
  • 149
  • 1
  • 1
  • 5
  • http://www.voyce.com/index.php/2008/06/20/programmatically-checking-memory-usage/ It will help you. – SALMAN Nov 02 '11 at 12:57

2 Answers2

2

Apple has a tool called Instruments for that:

Instruments User Guide

iOS Developer Tools Overview

chown
  • 51,908
  • 16
  • 134
  • 170
1

If you just run your application in Profile mode (click and hold the Run button and select Profile or do Command-I), it will open Instruments and you can choose to profile memory allocations from there.

Dori
  • 915
  • 1
  • 12
  • 20
Adam
  • 1,172
  • 1
  • 8
  • 12
  • well I have clearly written programmatically. Why you people are referring me Instruments.? – Arsalan Nov 10 '11 at 10:50
  • I actually originally added information for programmatically as well, but it was edited out when your question got closed. – Adam Nov 10 '11 at 12:49