public final class XClassHistogramRecord extends ClassHistogramRecord
COMPARATOR_FOR_LABEL, COMPARATOR_FOR_NUMBEROFOBJECTS, COMPARATOR_FOR_RETAINEDHEAPSIZE, COMPARATOR_FOR_USEDHEAPSIZE
Constructor and Description |
---|
XClassHistogramRecord(ClassImpl classInstance)
Create an XClassHistogramRecord by retrieving information from the class
|
Modifier and Type | Method and Description |
---|---|
long |
calculateRetainedSize(ISnapshot snapshot,
boolean calculateIfNotAvailable,
boolean approximation,
IProgressListener listener)
Find out the retained size
|
int |
getClassId()
Get id of the class this class histogram record stands for.
|
int[] |
getObjectIds()
Get ids of the objects this class histogram record stands for.
|
toString
getLabel, getNumberOfObjects, getRetainedHeapSize, getUsedHeapSize, incNumberOfObjects, incNumberOfObjects, incRetainedHeapSize, incUsedHeapSize, reverseComparator, setLabel, setNumberOfObjects, setRetainedHeapSize, setUsedHeapSize
public XClassHistogramRecord(ClassImpl classInstance) throws SnapshotException
classInstance
- the classSnapshotException
public int getClassId()
ClassHistogramRecord
getClassId
in class ClassHistogramRecord
public int[] getObjectIds()
ClassHistogramRecord
getObjectIds
in class ClassHistogramRecord
public long calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener) throws SnapshotException
ClassHistogramRecord
calculateRetainedSize
in class ClassHistogramRecord
snapshot
- the snapshotcalculateIfNotAvailable
- whether to calculate the size if not already availableapproximation
- whether to use an approximation to the retained size (sum of the individual retained sizes)listener
- to report progress and errorsSnapshotException