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, getUsedHeapSize
equals, getClassAddress, getClassId, getClazz, getComparatorForClassSpecificName, getComparatorForTechnicalName, getComparatorForUsedHeapSize, getDisplayName, getGCRootInfo, getRetainedHeapSize, getSnapshot, getTechnicalName, hashCode, resolveValue, setClassInstance, setObjectAddress, setObjectId, setSnapshot, toString
getClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getOutboundReferences, getRetainedHeapSize, getSnapshot, getTechnicalName, getUsedHeapSize, resolveValue
public static final String NO_LABEL
public String getClassSpecificName()
IObject
getClassSpecificName
in interface IObject
getClassSpecificName
in class AbstractObjectImpl
public List<IClass> getDefinedClasses() throws SnapshotException
IClassLoader
getDefinedClasses
in interface IClassLoader
SnapshotException
public long getRetainedHeapSizeOfObjects(boolean calculateIfNotAvailable, boolean calculateMinRetainedSize, IProgressListener listener) throws SnapshotException
IClassLoader
getRetainedHeapSizeOfObjects
in interface IClassLoader
calculateIfNotAvailable
- if false only return a cached version of the sizecalculateMinRetainedSize
- if true then when calculating use an approximationlistener
- to indicate progress and errorsSnapshotException
public static final List<IClass> doGetDefinedClasses(ISnapshot dump, int classLoaderId) throws SnapshotException
dump
- the snapshotclassLoaderId
- the class loader to look forSnapshotException
public 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