Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialivan akulov
4,174 Pointsis it a memory leak?
While running the app I have memory stripe increase. Total 10.9Mb is it the way it should be ? if not how can I find the problem?
3 Answers
Stone Preston
42,016 Points10.9 MB is really nothing. displaying anything in your app is going to cause a jump in memory. once you start getting up there close to 100MB is when you are really using a lot of memory. Displaying a video, image view, anything really graphics intense is going to cause your app to use more memory. but 10.9MB is not really anything to be concerned with (unless it just keeps going and going, then you have a leak). Normally it will jump when you display a new view, then go back down with you dismiss it, then go back up when you do something else, then decrease a bit when that is dismissed etc.
ivan akulov
4,174 Pointsbut why memory stripe rises by the time?
Stone Preston
42,016 Pointsbecause doing things in your app takes memory. Displaying buttons, views, tables etc that all takes memory. If you have stuff on the screen memory is constantly being allocated and deallocated in order to present that stuff. Its not constant. It changes depending on whats going on in your app. Some apps may have tiny increases and use a relatively small amount of memory. Larger apps such as games may use a ton of memory.
ivan akulov
4,174 Pointssounds nice. But I don't see the same on the video. That is why it's confusing