|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.snapshot.MultiplePathsFromGCRootsClassRecord
public class MultiplePathsFromGCRootsClassRecord
Holds one level of multiple paths from Garbage Collection roots merged by class.
| Constructor Summary | |
|---|---|
MultiplePathsFromGCRootsClassRecord(IClass clazz,
int level,
boolean fromRoots,
ISnapshot snapshot)
Constructor |
|
| Method Summary | |
|---|---|
void |
addPath(int[] path)
This method is used only when the record is built. |
IClass |
getClazz()
|
static Comparator<MultiplePathsFromGCRootsClassRecord> |
getComparatorByNumberOfReferencedObjects()
|
static Comparator<MultiplePathsFromGCRootsClassRecord> |
getComparatorByReferencedHeapSize()
Returns a Comparator ordering the records descending by the total size of referenced objects. |
int |
getCount()
Get the number of paths going through this object |
int |
getDistinctCount()
Get the number of distinct objects of this class |
int |
getLevel()
|
List<int[]> |
getPaths()
Get all the paths going through the object (getObjectId()) |
long |
getReferencedHeapSize()
Get the total net heap size of all referenced objects (see getReferencedObjects()) |
int[] |
getReferencedObjects()
Get the "end" objects for each path. |
boolean |
isFromRoots()
|
MultiplePathsFromGCRootsClassRecord[] |
nextLevel()
Go down to the next level |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiplePathsFromGCRootsClassRecord(IClass clazz,
int level,
boolean fromRoots,
ISnapshot snapshot)
clazz - the class in questionlevel - fromRoots - true means from roots, false means to rootssnapshot - | Method Detail |
|---|
public MultiplePathsFromGCRootsClassRecord[] nextLevel()
throws SnapshotException
SnapshotExceptionpublic void addPath(int[] path)
path - public List<int[]> getPaths()
public int getCount()
public int getDistinctCount()
public long getReferencedHeapSize()
throws SnapshotException
SnapshotExceptionpublic int[] getReferencedObjects()
public static Comparator<MultiplePathsFromGCRootsClassRecord> getComparatorByNumberOfReferencedObjects()
public static Comparator<MultiplePathsFromGCRootsClassRecord> getComparatorByReferencedHeapSize()
public IClass getClazz()
public boolean isFromRoots()
public int getLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||