Interface NativeMemoryCategory

All Known Implementing Classes:
NativeMemoryCategoryImpl

public interface NativeMemoryCategory
This class contains information about the different areas, or categories, in the JVM that are using native memory. Categories might include, for example, JIT, Threads, or Class Libraries. Categories have a hierarchy, for example, the JRE category contains the Class Libraries category, which in turn contains the VM Class Libraries category.
  • Method Details

    • getName

      String getName()
      Gets the name of this memory category.
      Returns:
      the memory category name.
    • getAllocatedDeep

      long getAllocatedDeep()
      Gets the number of objects allocated for this category and all of its subcategories.
      Returns:
      the number of objects.
    • getAllocatedShallow

      long getAllocatedShallow()
      Gets the number of objects allocated for this category only.
      Returns:
      the number of objects.
    • getBytesDeep

      long getBytesDeep()
      Gets the actual memory use for this category and all of its subcategories.
      Returns:
      the memory value in bytes.
    • getBytesShallow

      long getBytesShallow()
      Gets the actual memory use for this category only.
      Returns:
      the memory value in bytes.
    • getChildren

      NativeMemoryCategory[] getChildren()
      Gets all subcategories of this category.
      Returns:
      an array of NativeMemoryCategory objects, representing the subcategories.
    • getParent

      Gets the parent category of this category.
      Returns:
      the parent NativeMemoryCategory object.
    • getMemoryBreakdownData

      MemoryData[] getMemoryBreakdownData()
      Gets the memory data for this category.
      Returns:
      an array of memory use over time.