How to Use the Allocation Timeline Tool

Meggin Kearney
Meggin Kearney

Use the Allocation timeline tool to find objects that aren't being properly garbage collected, and continue to retain memory.

How the tool works

An Allocation timeline report combines the detailed snapshot information of the heap profiler with the incremental updating and tracking of the Timeline panel. Similar to these tools, tracking heap allocation involves starting a recording, performing a sequence of actions, then stop the recording for analysis.

The tool takes heap snapshots periodically throughout the recording (as frequently as every 50 ms!) and one final snapshot at the end of the recording.