Interface HeapValue
-
public interface HeapValueContains 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:
Aggregation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescriptorgetDescriptor(Connection connection)Returns the descriptor that describes the class or package for this heap value.longgetInstanceCount()Returns the number of instances of the class or package represented by this heap value.longgetShallowSize()Returns the shallow size in bytes of the instances of the class or package represented by this heap value.
-
-
-
Method Detail
-
getDescriptor
Descriptor getDescriptor(Connection connection)
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
-
-