Package org.eclipse.mat.parser.model
Class XClassLoaderHistogramRecord
- java.lang.Object
-
- org.eclipse.mat.snapshot.HistogramRecord
-
- org.eclipse.mat.snapshot.ClassLoaderHistogramRecord
-
- org.eclipse.mat.parser.model.XClassLoaderHistogramRecord
-
- All Implemented Interfaces:
java.io.Serializable
public final class XClassLoaderHistogramRecord extends ClassLoaderHistogramRecord
Accumulated data about a class loader, including classes and shallow and retained sizes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.mat.snapshot.HistogramRecord
COMPARATOR_FOR_LABEL, COMPARATOR_FOR_NUMBEROFOBJECTS, COMPARATOR_FOR_RETAINEDHEAPSIZE, COMPARATOR_FOR_USEDHEAPSIZE
-
-
Constructor Summary
Constructors Constructor Description XClassLoaderHistogramRecord(java.lang.String label, int classLoaderId, java.util.ArrayList<ClassHistogramRecord> classHistogramRecords, long numberOfObjects, long usedHeapSize, long retainedHeapSize)
Create record for the class loader based on the records for the classes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener)
Find out the retained size-
Methods inherited from class org.eclipse.mat.snapshot.ClassLoaderHistogramRecord
getClassHistogramRecords, getClassLoaderId, getObjectIds, toString
-
Methods inherited from class org.eclipse.mat.snapshot.HistogramRecord
getLabel, getNumberOfObjects, getRetainedHeapSize, getUsedHeapSize, incNumberOfObjects, incNumberOfObjects, incRetainedHeapSize, incUsedHeapSize, reverseComparator, setLabel, setNumberOfObjects, setRetainedHeapSize, setUsedHeapSize
-
-
-
-
Constructor Detail
-
XClassLoaderHistogramRecord
public XClassLoaderHistogramRecord(java.lang.String label, int classLoaderId, java.util.ArrayList<ClassHistogramRecord> classHistogramRecords, long numberOfObjects, long usedHeapSize, long retainedHeapSize)
Create record for the class loader based on the records for the classes- Parameters:
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 objects
-
-
Method Detail
-
calculateRetainedSize
public long calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener) throws SnapshotException
Description copied from class:ClassLoaderHistogramRecord
Find out the retained size- Overrides:
calculateRetainedSize
in classClassLoaderHistogramRecord
- Parameters:
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 errors- Returns:
- the retained size, negated if approximate, and 0 if unavailable
- Throws:
SnapshotException
-
-