Class GraphStats

java.lang.Object
org.openjdk.jol.info.GraphStats

public class GraphStats extends Object
Light-weight statistics about the object graph.
  • Field Details

    • totalCount

      private long totalCount
    • totalSize

      private long totalSize
  • Constructor Details

    • GraphStats

      public GraphStats()
  • Method Details

    • parseInstance

      public static GraphStats parseInstance(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