ios - Memory Usage Difference b/w Debug and Release Configuration -


i'm using taskinfo amount of memory app using programmatically. code basically

    kern_return_t result = task_info(mach_task_self(), task_basic_info, (task_info_t)&info, &num);     if (result == kern_success ) {         memoryused = (double)(info.resident_size/1000000.0); 

when run app on debug configuration reports far more memory being used compared when run on distribution (~100mb of difference). since there other third party libraries being linked i'm not sure if doing weird stuff.

my question assuming app not doing weird normal have such huge difference?

p.s. : i'm using cocos2d think that's pretty safe.

i expected behavior. @ least has been way in projects compared memory usage between debug , release builds.

one reason in debug builds lot more things being done , possibly kept in memory. debugging stuff mostly, yours , framework's (ie cocos2d). various assertions , logs add more (temporary) memory usage well. connected debugger , debugging services may consume additional memory attributed app.

there's nothing worried about. measure memory usage in release builds because that's run on users' devices.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -