Class HeapSummary

java.lang.Object
com.oracle.truffle.tools.profiler.HeapSummary

public final class HeapSummary extends Object
Represents a summary of total and alive instances and object sizes.
Since:
19.0
  • Method Details

    • getTotalInstances

      public long getTotalInstances()
      Returns the total number of allocated instances.
      Since:
      19.0
    • getAliveInstances

      public long getAliveInstances()
      Returns the number of objects that are alive (i.e. not garbage collected).
      Since:
      19.0
    • getTotalBytes

      public long getTotalBytes()
      Returns the total number of bytes allocated.
      Since:
      19.0
    • getAliveBytes

      public long getAliveBytes()
      Returns the number of bytes used by alive object instances.
      Since:
      19.0
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      19.0