Package org.eclipse.mat.snapshot.query
Class RetainedSizeDerivedData
- java.lang.Object
-
- org.eclipse.mat.query.ContextDerivedData
-
- org.eclipse.mat.snapshot.query.RetainedSizeDerivedData
-
public class RetainedSizeDerivedData extends ContextDerivedData
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
Fields Modifier and Type Field Description static ContextDerivedData.DerivedOperation
APPROXIMATE
Indicates approximate retained size.static ContextDerivedData.DerivedOperation
PRECISE
Indicates exact retained size.
-
Constructor Summary
Constructors Constructor Description RetainedSizeDerivedData(ISnapshot snaphot)
Initial constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Column
columnFor(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider)
Get a column for the retained size with the right calculator.ContextDerivedData.DerivedColumn[]
getDerivedColumns()
Get the extra column with the retained size data.java.lang.String
labelFor(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider)
Get the label for the extra column.-
Methods inherited from class org.eclipse.mat.query.ContextDerivedData
lookup
-
-
-
-
Field Detail
-
APPROXIMATE
public static final ContextDerivedData.DerivedOperation APPROXIMATE
Indicates approximate retained size. Sum of retained sizes of each object.
-
PRECISE
public static final ContextDerivedData.DerivedOperation PRECISE
Indicates exact retained size. Shallow size of retained set of the objects.
-
-
Constructor Detail
-
RetainedSizeDerivedData
public RetainedSizeDerivedData(ISnapshot snaphot)
Initial constructor.- Parameters:
snaphot
-
-
-
Method Detail
-
getDerivedColumns
public ContextDerivedData.DerivedColumn[] getDerivedColumns()
Get the extra column with the retained size data.- Specified by:
getDerivedColumns
in classContextDerivedData
- Returns:
- an array of columns
-
labelFor
public java.lang.String labelFor(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider)
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
-
-