Class HeapSummary
java.lang.Object
com.oracle.truffle.tools.profiler.HeapSummary
Represents a summary of total and alive instances and object sizes.
- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the number of bytes used by alive object instances.long
Returns the number of objects that are alive (i.e.long
Returns the total number of bytes allocated.long
Returns the total number of allocated instances.toString()
-
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
-