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.
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
getChildren()
Gets iterator of child categories.
|
long |
getDeepAllocations()
Gets number of allocations recorded against this category, and all children of this category.
|
long |
getDeepBytes()
Gets number of bytes recorded against this category, and all children of this category.
|
java.util.Iterator |
getMemorySections(boolean includeFreed)
Gets iterator of memory sections allocated against this category.
|
java.lang.String |
getName()
Gets the name of this category.
|
long |
getShallowAllocations()
Gets number of allocations recorded against this category.
|
long |
getShallowBytes()
Gets number of bytes allocated under this category.
|
java.lang.String getName() throws CorruptDataException
CorruptDataException
long getShallowAllocations() throws CorruptDataException
CorruptDataException
long getShallowBytes() throws CorruptDataException
CorruptDataException
long getDeepAllocations() throws CorruptDataException
CorruptDataException
long getDeepBytes() throws CorruptDataException
CorruptDataException
java.util.Iterator getChildren() throws CorruptDataException
CorruptDataException
java.util.Iterator getMemorySections(boolean includeFreed) throws CorruptDataException, DataUnavailable
includeFreed
- If true, iterator will iterate over blocks of memory that have been freed, but haven't been re-used yet.CorruptDataException
DataUnavailable
CorruptData
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2023 IBM Corp. and others.