Memory Analyzer allows to query the heap dump with custom SQL-like queries. OQL represents classes as tables, objects as rows, and fields as columns.
SELECT * FROM [ INSTANCEOF ] <class name="name"> [ WHERE <filter-expression> ] </filter-expression></class>
To open an OQL editor use the toolbar button :
OQL editor is divided into two areas:
Use Ctrl-Enter or toolbar button to execute the query.
Basic OQL syntax is as follows:
SELECT * FROM [ INSTANCEOF ] <class name> [ WHERE <filter-expression> ]