80.6 Memory Profiler
The memory profiler is displayed when the memory time-line is clicked within the main Android Profiler Tool window and appears as shown in Figure 80-14:
Figure 80-14
The memory time-line shows memory allocations relative to the scale on the right-hand side of the time-line for a range of different categories as indicated by the color key. The dashed line (A) represents the number of objects allocated for the app relative to the scale on the left-hand side of the time-line graph.
The trash can icons (B) indicate garbage collection events. A garbage collection event occurs when the Android runtime decides that an object residing in memory is no longer needed and automatically removes it to free memory.
In addition to the usual timelines, the window includes buttons (C) to force garbage collection events and to capture a heap dump.
A heap dump (Figure 80-15) lists all of the objects within the app that were using memory at the time the dump was...