|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.garret.heap.HeapInfo
Constructor Summary | |
HeapInfo()
|
Method Summary | |
void |
addRoot(java.lang.Object obj)
Add object to the list of root objects |
void |
addRootClass(java.lang.Class cls)
Add all static components of the class to the list of root objects |
Instance[] |
instances(Selector selector)
Get information about ob oject instances accessible from specified roots. |
Link[] |
links(Selector src,
Selector dst)
Find links between objects matching search criteria |
java.lang.Object[] |
referencedBy(java.lang.Object obj)
Get list of objects referencing this object |
Instance[] |
referencedByClass(java.lang.Object obj)
Get list of classes which instances reference this object |
void |
refresh()
Build object closure - collect heap info |
Relation[] |
relations(Selector src,
Selector dst)
Find relations between classes matching search criteria |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HeapInfo()
Method Detail |
public void addRoot(java.lang.Object obj)
obj
- root objectpublic void addRootClass(java.lang.Class cls)
cls
- class which static components will be added to the list of root objectspublic Instance[] instances(Selector selector)
selector
- object selector
public Link[] links(Selector src, Selector dst)
src
- condition for referencing objectdst
- condition for referened object
public java.lang.Object[] referencedBy(java.lang.Object obj)
obj
- referened object
public Instance[] referencedByClass(java.lang.Object obj)
obj
- referened object
public void refresh()
public Relation[] relations(Selector src, Selector dst)
src
- condition for referencing objectdst
- condition for referened object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |