|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openjdk.jol.info.GraphLayout
public class GraphLayout
Holds the object graph layout info.
Constructor Summary | |
---|---|
GraphLayout(Object root)
|
Method Summary | |
---|---|
SortedSet<Long> |
addresses()
Answer the set of addresses for the discovered objects |
long |
endAddress()
Answer the ending address of observed memory chunk |
Multiset<Class<?>> |
getClassCounts()
Answer the class counts |
Set<Class<?>> |
getClasses()
Answer the set of observed classes |
Multiset<Class<?>> |
getClassSizes()
Answer the class sizes. |
static GraphLayout |
parseInstance(Object root)
Parse the object graph starting from the given instance. |
GraphPathRecord |
record(long address)
Get the object descriptor for the given address |
long |
startAddress()
Answer the starting address of observed memory chunk |
String |
toFootprint()
Get the stringly representation of footprint table |
void |
toImage(String fileName)
Put the graphical representation of object graph into the file. |
String |
toPrintable()
Get the stringly representation of object graph |
long |
totalCount()
Answer the total instance count |
long |
totalSize()
Answer the total instance footprint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphLayout(Object root)
Method Detail |
---|
public static GraphLayout parseInstance(Object root)
root
- root instance to start from
public Multiset<Class<?>> getClassSizes()
public Multiset<Class<?>> getClassCounts()
public Set<Class<?>> getClasses()
public long totalCount()
public long totalSize()
public long startAddress()
public long endAddress()
public SortedSet<Long> addresses()
record(long)
public GraphPathRecord record(long address)
address
- address
public String toFootprint()
public String toPrintable()
public void toImage(String fileName) throws IOException
fileName
- filename
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |