I'm using the taskInfo
to get the amount of memory my app is using programmatically. The code for that is 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 I run my app on Debug
configuration it reports far more memory being used as compared to when I run it on Distribution
(~100MB of difference). Since there are some other third party libraries being linked I'm not sure if they are doing some weird stuff.
My question is assuming that my app is not doing anything weird is it normal to have such a huge difference?
P.S. : I'm also using cocos2d
but I think that's pretty safe.