com.ibm.dtfj.java
Interface JavaRuntimeMemoryCategory
- public interface JavaRuntimeMemoryCategory
Represents a category of native memory allocated by the Java runtime.
A category is a high-level grouping of memory allocations such as "Threads", "Classes" or "Java Heap".
Some Java runtime implementations use categories to track native memory use in the JRE.
Categories can have child categories and form a hierarchy.
The getShallow* methods return the allocation data for just this category. The getDeep* methods return the allocation data for this category and all its child categories.
Since:
1.5
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getChildren()
Gets iterator of child categories.
|
|
getDeepAllocations()
Gets number of allocations recorded against this category, and all children of this category.
|
|
getDeepBytes()
Gets number of bytes recorded against this category, and all children of this category.
|
|
getMemorySections(boolean includeFreed)
Gets iterator of memory sections allocated against this category.
|
|
getName()
Gets the name of this category.
|
|
getShallowAllocations()
Gets number of allocations recorded against this category.
|
|
getShallowBytes()
Gets number of bytes allocated under this category.
|
Method Detail
getName
- java.lang.String getName()
- throws CorruptDataException
Gets the name of this category. E.g. "Classes".
getShallowAllocations
- long getShallowAllocations()
- throws CorruptDataException
Gets number of allocations recorded against this category.
getShallowBytes
- long getShallowBytes()
- throws CorruptDataException
Gets number of bytes allocated under this category.
getDeepAllocations
- long getDeepAllocations()
- throws CorruptDataException
Gets number of allocations recorded against this category, and all children of this category.
getDeepBytes
- long getDeepBytes()
- throws CorruptDataException
Gets number of bytes recorded against this category, and all children of this category.
getChildren
- java.util.Iterator getChildren( )
- throws CorruptDataException
Gets iterator of child categories.
Returns:
Iterator of JavaRuntimeMemoryCategory objects that are immediate children of this category.
Throws:
getMemorySections
- java.util.Iterator getMemorySections( boolean includeFreed)
- throws CorruptDataException
- DataUnavailable
Gets iterator of memory sections allocated against this category.
Parameters:
includeFreed
- If true, iterator will iterate over blocks of memory that have been freed, but haven't been re-used yet. Returns:
Iterator of memory sections
Throws:
See Also: