Search code examples
xcodememory-leaksios-simulatorinstruments

How should I interpret the "all allocations" data in the Leaks Instrument?


I have written an app and was testing it for memory leaks when I noticed that the "all allocations" category in the leaks simulator keeps increasing its size whenever I open and close a sub-view.

I intially thought it was a memory leak, but it does not show up as a leak in the leaks tab.

Is this normal?

Screenshot of the simulator


Solution

  • That would make sense would it not? Every time you do something in the app, something is probably allocated such as your different subviews. Therefore total allocations will increase.It's just a record of the total allocations.