|
||||||||
| 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 |
java.util.HashMap |
instances(Selector selector)
Get infirmation about ob ject instances accessible from specified roots. |
java.util.Collection |
links(Selector src,
Selector dst)
Find links between objects matching search criteria |
Instance[] |
profile(Selector selector)
Get object instance profile. |
java.util.Collection |
referencedBy(java.lang.Object obj)
Get list of objects referencing this object |
java.util.Collection |
referencedByClass(java.lang.Object obj)
Get list of classes which instances reference this object |
void |
refresh()
Build object closure - collect heap info |
java.util.Collection |
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 java.util.HashMap instances(Selector selector)
selector - object selector
public java.util.Collection links(Selector src,
Selector dst)
src - condition for referencing objectdst - condition for referened object
public Instance[] profile(Selector selector)
selector - object selector
public java.util.Collection referencedBy(java.lang.Object obj)
obj - referened object
null if this object is not accessible from specified rootspublic java.util.Collection referencedByClass(java.lang.Object obj)
obj - referened object
null if this object is not accessible from specified rootspublic void refresh()
public java.util.Collection 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 | |||||||