A new API retrieveTotalMemUsed () was introduced to track the memory allocation done by the core and framework. This API shall be called from the application to get the memory details.
Another API – resetMemAccumulators() is introduced to clear all the memory counter variables to zero.
API:
/**
* This method is used to retrieve the memory usage numbers
* \param buffer A buffer allocated by the platform
* \return Structure containing all the accumulated memory thus far
*/
tTotalMemoryReq retrieveTotalMemUsed(xInt8* buffer = 0);
/**
* Resets all memory accumulated values to 0
*/
void resetMemAccumulators();