Package org.eclipse.mat.snapshot
Class DominatorsSummary
java.lang.Object
org.eclipse.mat.snapshot.DominatorsSummary
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A record containing information for objects of one class dominating a set of other objectsstatic class
A record containing information for objects loaded by one class loader dominating a set of other objects -
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<Object>
A comparator by number of dominated objectsstatic final Comparator<Object>
A comparator by dominated heap sizestatic final Comparator<Object>
A comparator by dominated objects' retained sizestatic final Comparator<Object>
A comparator by dominators heap sizestatic final Comparator<Object>
A comparator by dominators' retained sizestatic final Comparator<Object>
A comparator by number of dominatorsstatic final Comparator<Object>
A comparator by name -
Constructor Summary
ConstructorDescriptionDominatorsSummary
(DominatorsSummary.ClassDominatorRecord[] classDominatorRecords, ISnapshot snapshot) -
Method Summary
Modifier and TypeMethodDescriptionGet the dominators summary grouped by classesGet the dominators summary grouped by class loaders<C extends DominatorsSummary.ClassloaderDominatorRecord>
C[]getClassloaderDominatorRecords
(Class<C> factoryClass) getData()
Returns data object attached to the summary.static Comparator<Object>
reverseComparator
(Comparator<Object> comparator) Reverse the sort order.void
Attaches arbitrary data object to the summary.
-
Field Details
-
COMPARE_BY_NAME
A comparator by name -
COMPARE_BY_DOMINATORS
A comparator by number of dominators -
COMPARE_BY_DOMINATED
A comparator by number of dominated objects -
COMPARE_BY_DOMINATED_HEAP_SIZE
A comparator by dominated heap size -
COMPARE_BY_DOMINATOR_HEAP_SIZE
A comparator by dominators heap size -
COMPARE_BY_DOMINATED_RETAINED_HEAP_SIZE
A comparator by dominated objects' retained size -
COMPARE_BY_DOMINATOR_RETAINED_HEAP_SIZE
A comparator by dominators' retained size
-
-
Constructor Details
-
DominatorsSummary
public DominatorsSummary(DominatorsSummary.ClassDominatorRecord[] classDominatorRecords, ISnapshot snapshot)
-
-
Method Details
-
getData
Returns data object attached to the summary. Needed for UI elements to store context. -
setData
Attaches arbitrary data object to the summary. Needed for UI elements to store context. -
getClassDominatorRecords
Get the dominators summary grouped by classes- Returns:
- ClassDominatorRecord[] the array of ClassDominatorRecords
-
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
Reverse the sort order.
-