New and Noteworthy

Here are descriptions of some of the more interesting or significant changes made to the Memory Analyzer for the 1.5 release.

Possibility to Select Size Units

There is a new option to display bytes in B, KB, MB, GB, or Smart formats. The default is to always display in Bytes format to match the previous MAT behavior and not cause any confusion. The option can be changed in the Eclipse preference dialog or using -Dbytes_display=(bytes|kilobytes|megabytes|gigabytes|smart).

Preferences dialog to configure size units

In Smart mode, if the value is a gigabyte or more, display in gigabytes; similarly for megabytes and kilobytes; otherwise, display in bytes.

A Histogram showing entries with different size units

New API for Extracting Collection Details

The code which was used internally in Memory Analyzer to extract certain details about collections, for example size, fill ratio, lists and maps entries, etc... is now exposed as an API. This should make it easier to write extensions which need to inspect the contents or certain properties of collections.

Check the org.eclipse.mat.inspections.collectionextract package in the API Reference for more details.

New and Noteworthy for Memory Analyzer 1.4

The New and Noteworthy document for version 1.4 is available here.