Package org.openjdk.jol.info
Class GraphStats
- java.lang.Object
-
- org.openjdk.jol.info.GraphStats
-
public class GraphStats extends java.lang.ObjectLight-weight statistics about the object graph.
-
-
Field Summary
Fields Modifier and Type Field Description private longtotalCountprivate longtotalSize
-
Constructor Summary
Constructors Constructor Description GraphStats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddRecord(long size)static GraphStatsparseInstance(java.lang.Object... roots)Parse the object graph starting from the given instance.longtotalCount()Answer the total instance countlongtotalSize()Answer the total instance footprint
-
-
-
Method Detail
-
parseInstance
public static GraphStats parseInstance(java.lang.Object... roots)
Parse the object graph starting from the given instance.- Parameters:
roots- root instances to start from- Returns:
- object graph
-
addRecord
void addRecord(long size)
-
totalCount
public long totalCount()
Answer the total instance count- Returns:
- total instance count
-
totalSize
public long totalSize()
Answer the total instance footprint- Returns:
- total instance footprint, bytes
-
-