Knowing the amount of memory in the device is very critical esp. if you are trying to figure out memory leak. We can use C API to find out the Free, Used and Total memory of the device. The following method shows how to print out the memory stats. This method can be called however many times in a background thread to keep on printing the memory foot print. This can be used to diagnose a memory leak situation. [crayon-5626fdd0f33c0434161498/]
↧