Package org.openjdk.jol.info
Class GraphStats
java.lang.Object
org.openjdk.jol.info.GraphStats
Light-weight statistics about the object graph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphStatsparseInstance(Object... roots) Parse the object graph starting from the given instance.longAnswer the total instance countlongAnswer the total instance footprint
-
Constructor Details
-
GraphStats
public GraphStats()
-
-
Method Details
-
parseInstance
Parse the object graph starting from the given instance.- Parameters:
roots- root instances to start from- Returns:
- object graph
-
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
-