for ios app tuning instruments of xcode4,
- using activity monitor
real memory usage increase 10+ mb 100+ mb (i use ipod testing, doubt app can use memory 100+ mb, impossible ? )
- using memory leaks
sort bytes, biggest memory blocks seem 100 kb, seem non-sense
any practice find out biggest memory leaking ?
thanks
if shows 100mb+ use - memory leak can cause: because of not freeing allocated memory, if memory blocks small per se, can cumulate big numbers. , lot of 100kb blocks can sum lot of memory, if create lots of them.
so not on biggest memory block above number of memory blocks or number of living objects. make heap snapshots , compare them - after warming applications (warming means filling caches , variables) should not see increase in number of living objects more.
Comments
Post a Comment