16

What ranges could be considered Low, Medium, and High in memory usage?

As my app becomes more complex, I notice this number getting higher. I've been trying to use this number as an indicator to how efficiently I'm coding but I've realized I have no bar to compare it with.

How to understand Memory Usage says 1024 Mb to an iPhone/iPad, but obviously all of this memory can't go to the app.

Community
  • 1
  • 1
Chameleon
  • 1,608
  • 3
  • 21
  • 39

1 Answers1

9

You could get(a pretty nice) overview from this SO question. It won't show you low-medium values, but if you know the limit you can adjust below limit.

If you are near the limits in some view - override didReceiveMemoryWarning and dispose resources accordingly.

My advise is to test always on device, as simulator need a lot memory just because of it's architecture and it's not relative to real devices.

Community
  • 1
  • 1
hris.to
  • 6,235
  • 3
  • 46
  • 55
  • perfect. so seems 640Mb is the crash threshold for most modern Apple iOS devices. exactly the bar I needed ty – Chameleon May 15 '15 at 06:49
  • 1
    Thanks for pointing out the simulator. Its memory usage does look scary compared to real devices :) – mojuba Jan 07 '18 at 19:23