Interface HeapValue
public interface HeapValue
Contains information about allocated instances of a class or package.
Whether a class or package is contained in this structure is results from the actual interface returned by the descriptor property. The descriptor type is determined by the aggregation level that you specify when requesting the profiling data.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetDescriptor
(Connection connection) Returns the descriptor that describes the class or package for this heap value.long
Returns the number of instances of the class or package represented by this heap value.long
Returns the shallow size in bytes of the instances of the class or package represented by this heap value.
-
Method Details
-
getDescriptor
Returns the descriptor that describes the class or package for this heap value.For a class, the descriptor is of type
ClassDescriptor
, for a package, you get aPackageDescriptor
.- Parameters:
connection
- the connection by which this heap value was created- Returns:
- the descriptor
-
getInstanceCount
long getInstanceCount()Returns the number of instances of the class or package represented by this heap value.- Returns:
- the number of instances.
-
getShallowSize
long getShallowSize()Returns the shallow size in bytes of the instances of the class or package represented by this heap value.- Returns:
- the shallow size in bytes
-