|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.snapshot.query.SnapshotQuery
public class SnapshotQuery
This class provides possibility to lookup, inspect, parameterize and execute queries on a given heap dump.
NOTE: The queries delivered with Memory Analyzer and their expected parameters are not part of the API. Both names/identifiers and parameters may change.
Usage example:IResult result = SnapshotQuery.lookup("top_consumers_html", snapshot) // .setArgument("objects", retained) // .execute(listener);
Method Summary | |
---|---|
IResult |
execute(IProgressListener listener)
Execute the query and return the result. |
List<? extends IArgumentDescriptor> |
getArguments()
Get the list of the query arguments. |
IAnnotatedObjectDescriptor |
getDescriptor()
Get a descriptor for the query. |
static SnapshotQuery |
lookup(String name,
ISnapshot snapshot)
Factory method to create a query by name. |
static SnapshotQuery |
parse(String commandLine,
ISnapshot snapshot)
Factory method to create a query by command line, i.e. |
RefinedResultBuilder |
refine(IProgressListener listener)
Execute the query and return a RefinedResultBuilder which allows
for filtering, sorting and limiting of the result. |
SnapshotQuery |
set(String name,
Object value)
Deprecated. use setArgument() instead |
SnapshotQuery |
setArgument(String name,
Object value)
Set the argument identified by name . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SnapshotQuery lookup(String name, ISnapshot snapshot) throws SnapshotException
SnapshotException
public static SnapshotQuery parse(String commandLine, ISnapshot snapshot) throws SnapshotException
SnapshotException
public IAnnotatedObjectDescriptor getDescriptor()
IAnnotatedObjectDescriptor
a descriptor for the querypublic List<? extends IArgumentDescriptor> getArguments()
IArgumentDescriptor
describing the arguments which the query expectspublic SnapshotQuery setArgument(String name, Object value) throws SnapshotException
name
. Heap objects can be
provided as int
, Integer
, int[]
or
IObject
.
name
- the name of the argumentvalue
- the new value of the argument
SnapshotException
public SnapshotQuery set(String name, Object value) throws SnapshotException
SnapshotException
public IResult execute(IProgressListener listener) throws SnapshotException
SnapshotException
public RefinedResultBuilder refine(IProgressListener listener) throws SnapshotException
RefinedResultBuilder
which allows
for filtering, sorting and limiting of the result.
SnapshotException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |