- Expert Android Programming
- Prajyot Mainkar
- 251字
- 2021-07-08 10:29:07
Memory Monitor
When you hear the term memory management in an Android app, it is basically the Random Access Memory (RAM). Managing the RAM is the most critical section in the Android app development process, as the physical memory is often constrained. The fundamental principle of memory management is to avoid a memory leak from your app.
In Android Studio there is a tool we can use to check the memory usage in the App. To check this you could follow these steps:
- Run your app on an Android device connected to an emulator.
- Open the Android Monitor tab in Android Studio situated at the bottom window.
- Open the Monitor section within it, and you are there.
Here you'll be able to continuously check the memory usage of the app as and when the app is being used. The following image shows the memory usage for an app:

The preceding memory graph shows the memory used by a device against time. This graph shows the memory usage in the app when any process is performed by the app, be it loading data over the network, displaying an image, rendering a view on the screen, or running a background task.
There are two graphs being plotted at the same time here, one with the allocated memory that could be used by the device.
<p>OutOfMemoryException error is the most common cause of unconventional crashing of an app due to memory leaks, and the Memory Monitor tool can help you to debug the same.
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Drupal 8 Blueprints
- CentOS 7 Server Deployment Cookbook
- 編程卓越之道(卷3):軟件工程化
- YARN Essentials
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- Mastering Git
- Tableau Desktop可視化高級應(yīng)用
- Scala Functional Programming Patterns
- 從零學(xué)Java設(shè)計(jì)模式
- Python機(jī)器學(xué)習(xí)與量化投資
- MySQL數(shù)據(jù)庫應(yīng)用實(shí)戰(zhàn)教程(慕課版)
- HTML5程序開發(fā)范例寶典
- Cloud Development andDeployment with CloudBees
- 軟件測試項(xiàng)目實(shí)戰(zhàn)之功能測試篇