From the course: Android Studio Essential Training 2020

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Profile resource usage at runtime

Profile resource usage at runtime

From the course: Android Studio Essential Training 2020

Start my 1-month free trial

Profile resource usage at runtime

- [Instructor] Android Studio has tools that let you monitor resource usage, while the application is running on a device. These are all packaged into something called the Android Profiler. To demo this, I've created a simple application that I've called Memory Eater. It builds up a whole bunch of objects in memory, so you can then monitor the application and actually get complete memory dumps. To use this, I'll clone the application from GitHub, I'll click on that copy button, then I'll close the browser and return to the Android Studio welcome screen. And I'll click get from version control, and I'll paste in that URL and clone the project. In this application, I have a mutable list where I can add as many objects as I want. There are two buttons named, eat button and release button. When I click on the eat button, it starts a process, where it just keeps on adding items to that list. And when I click on the release…

Contents