public class ClassLoaderImpl extends InstanceImpl implements IClassLoader
IObject.Type| Constructor and Description |
|---|
ClassLoaderImpl(int objectId,
long address,
ClassImpl clazz,
List<Field> fields)
Constructs a class loader object.
|
| Modifier and Type | Method and Description |
|---|---|
static List<IClass> |
doGetDefinedClasses(ISnapshot dump,
int classLoaderId)
Gets the classes defined by a given loader
|
static long |
doGetRetainedHeapSizeOfObjects(ISnapshot dump,
int classLoaderId,
boolean calculateIfNotAvailable,
boolean calculateMinRetainedSize,
IProgressListener listener)
Calculates the retained size of all classes and instances of the class loaded
by a class loader.
|
String |
getClassSpecificName()
Get class specific name of this object which depends on the availability
of the appropriate name resolver, e.g.
|
List<IClass> |
getDefinedClasses()
Returns the classes defined by this class loader instance.
|
long |
getRetainedHeapSizeOfObjects(boolean calculateIfNotAvailable,
boolean calculateMinRetainedSize,
IProgressListener listener)
Returns the retained size of all objects and classes loaded by this class
loader.
|
getField, getFields, getObjectAddress, getObjectId, getOutboundReferences, getReferences, getUsedHeapSizeequals, getClassAddress, getClassId, getClazz, getComparatorForClassSpecificName, getComparatorForTechnicalName, getComparatorForUsedHeapSize, getDisplayName, getGCRootInfo, getRetainedHeapSize, getSnapshot, getTechnicalName, hashCode, resolveValue, setClassInstance, setObjectAddress, setObjectId, setSnapshot, toStringgetClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getOutboundReferences, getRetainedHeapSize, getSnapshot, getTechnicalName, getUsedHeapSize, resolveValuepublic static final String NO_LABEL
public String getClassSpecificName()
IObjectgetClassSpecificName in interface IObjectgetClassSpecificName in class AbstractObjectImplpublic List<IClass> getDefinedClasses() throws SnapshotException
IClassLoadergetDefinedClasses in interface IClassLoaderSnapshotExceptionpublic long getRetainedHeapSizeOfObjects(boolean calculateIfNotAvailable,
boolean calculateMinRetainedSize,
IProgressListener listener)
throws SnapshotException
IClassLoadergetRetainedHeapSizeOfObjects in interface IClassLoadercalculateIfNotAvailable - if false only return a cached version of the sizecalculateMinRetainedSize - if true then when calculating use an approximationlistener - to indicate progress and errorsSnapshotExceptionpublic static final List<IClass> doGetDefinedClasses(ISnapshot dump, int classLoaderId) throws SnapshotException
dump - the snapshotclassLoaderId - the class loader to look forSnapshotExceptionpublic static final long doGetRetainedHeapSizeOfObjects(ISnapshot dump, int classLoaderId, boolean calculateIfNotAvailable, boolean calculateMinRetainedSize, IProgressListener listener) throws SnapshotException
dump - the snapshotclassLoaderId - the class loader ifcalculateIfNotAvailable - true if to skip calculations if not already donecalculateMinRetainedSize - true if to make an approximate calculationlistener - to indicate progress, errors and to cancelSnapshotException