0

As Documents say, allocations give a heap analysis of the memory.

However, what I feel is my app is crashing because of storing a lot of data on stack, which might be overflowing.

How do I analyze that? Please Help. Thanks!

Nikita P
  • 4,226
  • 5
  • 31
  • 55
  • Check with memory monitor. For more details http://stackoverflow.com/questions/5518918/instruments-with-ios-why-does-memory-monitor-disagree-with-allocations – iDev Dec 10 '12 at 07:59

2 Answers2

1

First Build your app for Profiling (Command +I); Run it. Select the Allocations tool, Play around with (Use) the application.

In the Allocations you will find a section of Live Bytes this is the current RAM utilization by your application (data on stack I suppose it's the RAM you are talking abt in your question).

Releasing Objects that are not currently in use will reduce Live bytes

Overall Bytes - All bytes (Created & Destroyed + currently live bytes).

For Further reference refer Instruments Programming Guide.

Pranav Jaiswal
  • 3,752
  • 3
  • 32
  • 50
0

Creating and comparing "heapshots" is a good way to start narrowing down the code parts that show no obvious memory management errors at first glance. See my answer on this question for some further reading or check out this great article directly.

Community
  • 1
  • 1
Nenad M
  • 3,055
  • 20
  • 26