public class ClassLoaderHistogramRecord extends HistogramRecord
COMPARATOR_FOR_LABEL, COMPARATOR_FOR_NUMBEROFOBJECTS, COMPARATOR_FOR_RETAINEDHEAPSIZE, COMPARATOR_FOR_USEDHEAPSIZE
Constructor and Description |
---|
ClassLoaderHistogramRecord(String label,
int classLoaderId,
ArrayList<ClassHistogramRecord> classHistogramRecords,
long numberOfObjects,
long usedHeapSize,
long retainedHeapSize)
Details of a class loader
|
Modifier and Type | Method and Description |
---|---|
long |
calculateRetainedSize(ISnapshot snapshot,
boolean calculateIfNotAvailable,
boolean approximation,
IProgressListener listener)
Find out the retained size
|
Collection<ClassHistogramRecord> |
getClassHistogramRecords()
Get collection of the class histogram records this class loader histogram
record stands for.
|
int |
getClassLoaderId()
Get id of the class loader this class loader histogram record stands for.
|
int[] |
getObjectIds()
Get ids of the objects this class loader histogram record stands for.
|
String |
toString() |
getLabel, getNumberOfObjects, getRetainedHeapSize, getUsedHeapSize, incNumberOfObjects, incNumberOfObjects, incRetainedHeapSize, incUsedHeapSize, reverseComparator, setLabel, setNumberOfObjects, setRetainedHeapSize, setUsedHeapSize
public ClassLoaderHistogramRecord(String label, int classLoaderId, ArrayList<ClassHistogramRecord> classHistogramRecords, long numberOfObjects, long usedHeapSize, long retainedHeapSize)
label
- the name of the loaderclassLoaderId
- the id of the class loader objectclassHistogramRecords
- the histogram details of all the classes loaded by this loadernumberOfObjects
- usedHeapSize
- retainedHeapSize
- public int getClassLoaderId()
public Collection<ClassHistogramRecord> getClassHistogramRecords()
public int[] getObjectIds() throws SnapshotException
SnapshotException
public long calculateRetainedSize(ISnapshot snapshot, boolean calculateIfNotAvailable, boolean approximation, IProgressListener listener) throws SnapshotException
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