Package org.eclipse.mat.inspections
Class ReferenceQuery
java.lang.Object
org.eclipse.mat.inspections.ReferenceQuery
- All Implemented Interfaces:
IQuery
Extract information about objects extending java.lang.ref.Reference, e.g.
weak and soft references, and Finalizer.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IResultexecute(String className, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, IProgressListener listener) Important: the className must point to java.lang.ref.Reference or one of its subclasses.static CompositeResultexecute(ArrayInt instanceSet, SetInt referentSet, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, String referentField, IProgressListener listener) static CompositeResultexecute(ArrayInt instanceSet, SetInt referentSet, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, IProgressListener listener) execute(IProgressListener listener) The execute method is called after all arguments have been injected into the query instance.static ObjectReferencegetReferent(IInstance instance)
-
Field Details
-
snapshot
-
objects
-
referent_attribute
-
-
Constructor Details
-
ReferenceQuery
public ReferenceQuery()
-
-
Method Details
-
execute
Description copied from interface:IQueryThe execute method is called after all arguments have been injected into the query instance. Typical results areTextResult,CompositeResult,SectionSpecetc. -
execute
public static IResult execute(String className, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, IProgressListener listener) throws SnapshotException Important: the className must point to java.lang.ref.Reference or one of its subclasses. It is not possible to check this, as some heap dumps lack class hierarchy information.- Throws:
SnapshotException
-
execute
public static CompositeResult execute(ArrayInt instanceSet, SetInt referentSet, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, IProgressListener listener) throws SnapshotException - Throws:
SnapshotException
-
execute
public static CompositeResult execute(ArrayInt instanceSet, SetInt referentSet, ISnapshot snapshot, String labelHistogramReferenced, String labelHistogramRetained, String labelHistogramStronglyRetainedReferents, String referentField, IProgressListener listener) throws SnapshotException - Throws:
SnapshotException
-
getReferent
- Throws:
SnapshotException
-