public interface HeapValue
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.
Aggregation
Modifier and Type | Method and Description |
---|---|
Descriptor |
getDescriptor(Connection connection)
Returns the descriptor that describes the class or package for this heap value.
|
long |
getInstanceCount()
Returns the number of instances of the class or package represented by this heap value.
|
long |
getShallowSize()
Returns the shallow size in bytes of the instances of the class or package represented by this heap value.
|
Descriptor getDescriptor(Connection connection)
For a class, the descriptor is of type ClassDescriptor
,
for a package, you get a PackageDescriptor
.
connection
- the connection by which this heap value was createdlong getInstanceCount()
long getShallowSize()