java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaRuntimeMemoryCategory
- All Implemented Interfaces:
JavaRuntimeMemoryCategory
-
Constructor Summary
ConstructorsConstructorDescriptionJCJavaRuntimeMemoryCategory(String name, long deepBytes, long deepAllocations) -
Method Summary
Modifier and TypeMethodDescriptionvoidGets iterator of child categories.longGets number of allocations recorded against this category, and all children of this category.longGets 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.longGets number of allocations recorded against this category.longGets number of bytes allocated under this category.voidsetShallowCounters(long shallowBytes, long shallowAllocations)
-
Constructor Details
-
JCJavaRuntimeMemoryCategory
-
-
Method Details
-
getChildren
Description copied from interface:JavaRuntimeMemoryCategoryGets iterator of child categories.- Specified by:
getChildrenin interfaceJavaRuntimeMemoryCategory- Returns:
- Iterator of JavaRuntimeMemoryCategory objects that are immediate children of this category.
-
addChild
-
getDeepAllocations
public long getDeepAllocations()Description copied from interface:JavaRuntimeMemoryCategoryGets number of allocations recorded against this category, and all children of this category.- Specified by:
getDeepAllocationsin interfaceJavaRuntimeMemoryCategory- Returns:
- Allocation count.
-
getDeepBytes
public long getDeepBytes()Description copied from interface:JavaRuntimeMemoryCategoryGets number of bytes recorded against this category, and all children of this category.- Specified by:
getDeepBytesin interfaceJavaRuntimeMemoryCategory- Returns:
- Number of bytes.
-
getMemorySections
Description copied from interface:JavaRuntimeMemoryCategoryGets iterator of memory sections allocated against this category.- Specified by:
getMemorySectionsin interfaceJavaRuntimeMemoryCategory- 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
- See Also:
-
getName
Description copied from interface:JavaRuntimeMemoryCategoryGets the name of this category. E.g. "Classes".- Specified by:
getNamein interfaceJavaRuntimeMemoryCategory- Returns:
- Name string.
-
setShallowCounters
public void setShallowCounters(long shallowBytes, long shallowAllocations) -
getShallowAllocations
public long getShallowAllocations()Description copied from interface:JavaRuntimeMemoryCategoryGets number of allocations recorded against this category.- Specified by:
getShallowAllocationsin interfaceJavaRuntimeMemoryCategory- Returns:
- Allocation count.
-
getShallowBytes
public long getShallowBytes()Description copied from interface:JavaRuntimeMemoryCategoryGets number of bytes allocated under this category.- Specified by:
getShallowBytesin interfaceJavaRuntimeMemoryCategory- Returns:
- Number of bytes.
-