This feature lets you compare any two memory snapshots.
To locate memory leaks, consider using the object generations feature.
To compare snapshots:
When comparing memory snapshots, there is an option to choose objects of which reachability scopes to be included to the comparison results:
The Comparison tab with memory views Classes and Classes and packages will open. The views have 2 columns: Objects (+/-) and Size (+/-). These display the differences in object counts and sizes. Positive values mean that Snapshot 2 (the later memory state) has more objects and/or its objects have the bigger total size.
100% of size corresponds to the total size of all objects in the old snapshot. Likewise, 100% of count corresponds to the object count in the old snapshot.