Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Testing and securing android studio applications

You're reading from  Testing and securing android studio applications

Product type Book
Published in Aug 2014
Publisher Packt
ISBN-13 9781783988808
Pages 162 pages
Edition 1st Edition
Languages

Allocation Tracker


The Allocation Tracker tab displays the memory allocations of the selected process. The allocation tracker, unlike the heap tool, shows the specific objects being allocated along with the thread, the method, and the line code that allocated them.

You can again run the previous example created for the heap monitor to show the results of the allocation tracker. Select the application process and in the Allocation Tracker tab and click on the Start Tracking button to start tracking the memory information. Now, click on the Get Allocations button. This will get the list of allocated objects, which includes a filter on the top of the tab that you can use to filter the objects allocated in your own classes.

Click on the Start Memory Consumption button of the application. In the DDMS perspective, again click on the Get Allocations button and observe the new objects that are listed in the results. The objects are the buttons created in the memoryConsumption method.

The results table...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}