O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Memory profiler

Fully understanding the impact our app has on a device's CPU is just one consideration. As developers, we have to create apps without knowing what the memory capabilities of our target devices are, and, furthermore, we have no way of knowing what other uses these devices are making of their memory at the time our app is running.

To assist us in planning memory use and avoiding leaks, Android Studio comes equipped with a powerful memory profiler. This allows us to view the Java heap and record memory allocation. Provided you have advanced profiling enabled, the advanced memory profiler can be opened in the same fashion as the processor profiler by clicking anywhere on the live timeline.

The advanced memory profiler

As the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required