Allocation Tree Comparison

## Allocation Tree Comparison |

| The allocation tree comparison is one of the memory comparisons. It is created by invoking the memory comparison wizard. For more information on snapshot comparisons, please see the snapshot comparison overview.

| The wizard has the following additional steps: Select snapshots The allocation tree comparison compares two snapshot files. In this step, you select the first and the second snapshot file for the comparison. The combo boxes contain all snapshot files that have been added to the snapshot selector. The first and second snapshot files must be different. Class selection In this step, you choose for which class or package the comparison should be made. By default all classed are selected, you can restrict the class selection to a single class or a single package. View parameters In this steps you can select aggregation level and liveness mode, just as for the allocation tree view.

| Each node in the tree has the same format as in the allocation tree view, except that the size and allocations are the differences between the second and the first snapshot. Each node has an optional bar chart at the beginning, Increases are painted in red, while decreases are painted in green. In the view settings dialog you can choose whether you want this bar chart to display absolute changes or the percentage of the change. The other value is displayed in parentheses. This setting also determines how sibling nodes are sorted.

| By default, only call stacks that are present in both snapshot files and that have changed from one snapshot file to the other are displayed. You can change this behavior in the view settings dialog.