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 TypeMethodDescriptionlongReturns the number of bytes used by alive object instances.longReturns the number of objects that are alive (i.e.longReturns the total number of bytes allocated.longReturns 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
-