public class MultiplePathsFromGCRootsClassRecord extends Object
Constructor and Description |
---|
MultiplePathsFromGCRootsClassRecord(IClass clazz,
int level,
boolean fromRoots,
ISnapshot snapshot)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public MultiplePathsFromGCRootsClassRecord[] nextLevel() throws SnapshotException
SnapshotException
public void addPath(int[] path)
path
- public List<int[]> getPaths()
public int getCount()
public int getDistinctCount()
public long getReferencedHeapSize() throws SnapshotException
SnapshotException
public int[] getReferencedObjects()
public static Comparator<MultiplePathsFromGCRootsClassRecord> getComparatorByNumberOfReferencedObjects()
public static Comparator<MultiplePathsFromGCRootsClassRecord> getComparatorByReferencedHeapSize()
public IClass getClazz()
public boolean isFromRoots()
public int getLevel()