Class DominatorsSummary

java.lang.Object
org.eclipse.mat.snapshot.DominatorsSummary

public final class DominatorsSummary extends Object
This class holds the data of a dominators summary (see ISnapshot.getDominatorsOf()). For a given list of objects the summary contains the dominators of the single objects grouped by class or by class loader.#
No Instantiate:
  • Field Details

    • COMPARE_BY_NAME

      public static final Comparator<Object> COMPARE_BY_NAME
      A comparator by name
    • COMPARE_BY_DOMINATORS

      public static final Comparator<Object> COMPARE_BY_DOMINATORS
      A comparator by number of dominators
    • COMPARE_BY_DOMINATED

      public static final Comparator<Object> COMPARE_BY_DOMINATED
      A comparator by number of dominated objects
    • COMPARE_BY_DOMINATED_HEAP_SIZE

      public static final Comparator<Object> COMPARE_BY_DOMINATED_HEAP_SIZE
      A comparator by dominated heap size
    • COMPARE_BY_DOMINATOR_HEAP_SIZE

      public static final Comparator<Object> COMPARE_BY_DOMINATOR_HEAP_SIZE
      A comparator by dominators heap size
    • COMPARE_BY_DOMINATED_RETAINED_HEAP_SIZE

      public static final Comparator<Object> COMPARE_BY_DOMINATED_RETAINED_HEAP_SIZE
      A comparator by dominated objects' retained size
    • COMPARE_BY_DOMINATOR_RETAINED_HEAP_SIZE

      public static final Comparator<Object> COMPARE_BY_DOMINATOR_RETAINED_HEAP_SIZE
      A comparator by dominators' retained size
  • Constructor Details

  • Method Details

    • getData

      public Object getData()
      Returns data object attached to the summary. Needed for UI elements to store context.
    • setData

      public void setData(Object data)
      Attaches arbitrary data object to the summary. Needed for UI elements to store context.
    • getClassDominatorRecords

      public DominatorsSummary.ClassDominatorRecord[] getClassDominatorRecords()
      Get the dominators summary grouped by classes
      Returns:
      ClassDominatorRecord[] the array of ClassDominatorRecords
    • getClassloaderDominatorRecords

      public DominatorsSummary.ClassloaderDominatorRecord[] getClassloaderDominatorRecords()
      Get the dominators summary grouped by class loaders
      Returns:
      ClassloaderDominatorRecord[] the array of ClassloaderDominatorRecords
    • getClassloaderDominatorRecords

      public <C extends DominatorsSummary.ClassloaderDominatorRecord> C[] getClassloaderDominatorRecords(Class<C> factoryClass)
    • reverseComparator

      public static Comparator<Object> reverseComparator(Comparator<Object> comparator)
      Reverse the sort order.