Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1

Challenge: Exploring Allocation Tracking


89

Challenge: Exploring Allocation Tracking


The Allocation Tracker tool creates detailed reports for the frequency and number of memory
allocation calls in your program and is useful for performance-tuning your app. In the Android Monitor
tool window, click the Allocation Tracker button (Figure 4.10).


Figure 4.10  Starting the Allocation Tracker


This will begin recording memory allocations as you interact with your app. Once you have performed
the interaction you are profiling, click the button again to stop allocation tracking. This will display the
allocation report (Figure 4.11).


http://www.ebook3000.com

Free download pdf