Memory Profiler is an Android diagnostic tool that displays application memory usage by category, including Java or Kotlin code, native code, graphics, and system resources. A healthy application rises during use and settles at a stable ceiling; continued growth indicates retained objects that should have been released. section 7.3.3
Use the graph and leak detection to distinguish recurring failure patterns:
- A steadily rising graph suggests a memory leak or another object-retention problem. section 7.3.3
- A rapid sawtooth pattern indicates frequent creation and disposal of short-lived objects, which can cause stuttering during animation and scrolling. section 7.3.3
- Automatic leak detection identifies common Android leaks, names the leaked object, and shows what keeps it alive. section 7.3.3
Rotation retaining an old screen
After device rotation, Android destroys the current screen and creates another. A background thread, long-lived variable, or registered listener that still references the old screen can retain its views and keep the invisible screen in memory. section 7.3.3

