public final class XClassLoaderHistogramRecord extends ClassLoaderHistogramRecord
COMPARATOR_FOR_LABEL, COMPARATOR_FOR_NUMBEROFOBJECTS, COMPARATOR_FOR_RETAINEDHEAPSIZE, COMPARATOR_FOR_USEDHEAPSIZE
Constructor and Description |
---|
XClassLoaderHistogramRecord(String label,
int classLoaderId,
ArrayList<ClassHistogramRecord> classHistogramRecords,
long numberOfObjects,
long usedHeapSize,
long retainedHeapSize)
Create record for the class loader based on the records for the classes
|
Modifier and Type | Method and Description |
---|---|
long |
calculateRetainedSize(ISnapshot snapshot,
boolean calculateIfNotAvailable,
boolean approximation,
IProgressListener listener)
Find out the retained size
|
getClassHistogramRecords, getClassLoaderId, getObjectIds, toString
getLabel, getNumberOfObjects, getRetainedHeapSize, getUsedHeapSize, incNumberOfObjects, incNumberOfObjects, incRetainedHeapSize, incUsedHeapSize, reverseComparator, setLabel, setNumberOfObjects, setRetainedHeapSize, setUsedHeapSize
public XClassLoaderHistogramRecord(String label, int classLoaderId, ArrayList<ClassHistogramRecord> classHistogramRecords, long numberOfObjects, long usedHeapSize, long retainedHeapSize)
label
- for displayclassLoaderId
- the object id of the class loaderclassHistogramRecords
- summary of all the classes loaded by the class loadernumberOfObjects
- the total number of objectsusedHeapSize
- the total shallow size of the loader, classes and objectsretainedHeapSize
- the total retained size of the loader, classes and objectspublic long calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener) throws SnapshotException
ClassLoaderHistogramRecord
calculateRetainedSize
in class ClassLoaderHistogramRecord
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