objective c - Meaning of clearance of generation analysis memory growth on simulator "simulate memory warning" event -
i trying debug memory growth in generation analysis , frustrated (lots of objects result of call tocgglyphbitmapcreate not being released) . then, ran program on simulator , captured many generation snapshots , did simulate memory warning. every generation cleared 0 ( few had few bytes here , there). mean code fine , should not worry it? how can prevent growth wont have wait until simulate memory warning event clear growth? (by way, these growth caused system libraries)
if memory getting released upon memory warning, you're ok. os cache sorts of stuff (that free/reuse sees fit) don't have concerned about.
still, run code through static analyzer (press shift+command+b in xcode or select "analyze" on xcode "product" menu) safe.
Comments
Post a Comment