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.
|
toStringgetLabel, getNumberOfObjects, getRetainedHeapSize, getUsedHeapSize, incNumberOfObjects, incNumberOfObjects, incRetainedHeapSize, incUsedHeapSize, reverseComparator, setLabel, setNumberOfObjects, setRetainedHeapSize, setUsedHeapSizepublic XClassHistogramRecord(ClassImpl classInstance) throws SnapshotException
classInstance - the classSnapshotExceptionpublic int getClassId()
ClassHistogramRecordgetClassId in class ClassHistogramRecordpublic int[] getObjectIds()
ClassHistogramRecordgetObjectIds in class ClassHistogramRecordpublic long calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener) throws SnapshotException
ClassHistogramRecordcalculateRetainedSize in class ClassHistogramRecordsnapshot - 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