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

Screenshot shows Starting the Allocation Tracker in Android Monitor.

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).

Figure 4.11  Allocation Tracker report

Screenshot shows allocation tracker report in Android monitor.

The allocation report shows the count of memory allocation events and the size of each in bytes in table form and as a visualization. You can select the report type at the top of the tool window.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.44.108