You can compare two to view the differences between two heap snapshots that were taken at different times. You do not need to be running a profiling session to compare heap dumps.
Perform the following steps to compare two heap snapshots.
Alternatively, you can open heap dump snapshots from the Profiler Control Panel if an open project has snapshots associated with the project.
The IDE opens the Select Heap Dump to Compare dialog box.
When you click OK, the IDE will update the Heap window to display the differences between the two heap dumps.
Click reset view at the top of the Heap window to display the initial heap dump.