Package org.eclipse.mat.snapshot.query
Class RetainedSizeDerivedData
java.lang.Object
org.eclipse.mat.query.ContextDerivedData
org.eclipse.mat.snapshot.query.RetainedSizeDerivedData
Extract retained size information.
Used for quantization.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.mat.query.ContextDerivedData
ContextDerivedData.DerivedCalculator, ContextDerivedData.DerivedColumn, ContextDerivedData.DerivedOperation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ContextDerivedData.DerivedOperation
Indicates approximate retained size.static final ContextDerivedData.DerivedOperation
Indicates exact retained size. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncolumnFor
(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider) Get a column for the retained size with the right calculator.Get the extra column with the retained size data.labelFor
(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider) Get the label for the extra column.Methods inherited from class org.eclipse.mat.query.ContextDerivedData
lookup
-
Field Details
-
APPROXIMATE
Indicates approximate retained size. Sum of retained sizes of each object. -
PRECISE
Indicates exact retained size. Shallow size of retained set of the objects.
-
-
Constructor Details
-
RetainedSizeDerivedData
Initial constructor.- Parameters:
snaphot
-
-
-
Method Details
-
getDerivedColumns
Get the extra column with the retained size data.- Specified by:
getDerivedColumns
in classContextDerivedData
- Returns:
- an array of columns
-
labelFor
Get the label for the extra column. Based on the column name plus information from the provider as to name of the set of objects.- Specified by:
labelFor
in classContextDerivedData
- Parameters:
derivedColumn
- the extra columnprovider
- how the column was generated- Returns:
- the label
-
columnFor
public Column columnFor(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider) Get a column for the retained size with the right calculator.- Specified by:
columnFor
in classContextDerivedData
- Parameters:
derivedColumn
- the extra columnresult
- the original result to be enhancedprovider
- the provider of all the data- Returns:
- the column
-