public class MultiplePathsFromGCRootsRecord extends Object
Constructor and Description |
---|
MultiplePathsFromGCRootsRecord(int objectId,
int level,
ISnapshot snapshot)
A constructor to create the record
|
Modifier and Type | Method and Description |
---|---|
void |
addPath(int[] path)
This method is used only when the record is built.
|
static Comparator<MultiplePathsFromGCRootsRecord> |
getComparatorByNumberOfReferencedObjects()
Returns a Comparator ordering the records descending by the number of
referenced objects.
|
static Comparator<MultiplePathsFromGCRootsRecord> |
getComparatorByReferencedHeapSize()
Returns a Comparator ordering the records descending by the total size of
referenced objects.
|
static Comparator<MultiplePathsFromGCRootsRecord> |
getComparatorByReferencedRetainedSize()
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 |
getLevel()
Get the level of this record
|
int |
getObjectId()
Get the id of the object which is common for all the paths
|
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.
|
long |
getReferencedRetainedSize()
Get the total retained heap size of the referenced objects
|
MultiplePathsFromGCRootsRecord[] |
nextLevel()
Returns the next level of the paths.
|
void |
setReferencedRetainedSize(long referencedRetainedSize)
Set the retained heap size of the referenced objects
|
public MultiplePathsFromGCRootsRecord(int objectId, int level, ISnapshot snapshot)
objectId
- - the ID of the object which is common for all the pathslevel
- - the level (depth) in the paths where this objects appearssnapshot
- - an ISnapshot object used for further calculationpublic long getReferencedRetainedSize()
public void setReferencedRetainedSize(long referencedRetainedSize)
public MultiplePathsFromGCRootsRecord[] nextLevel()
public void addPath(int[] path)
path
- public List<int[]> getPaths()
public int getObjectId()
public int getCount()
public int getLevel()
public int[] getReferencedObjects()
public long getReferencedHeapSize() throws SnapshotException
SnapshotException
public static Comparator<MultiplePathsFromGCRootsRecord> getComparatorByNumberOfReferencedObjects()
public static Comparator<MultiplePathsFromGCRootsRecord> getComparatorByReferencedHeapSize()
public static Comparator<MultiplePathsFromGCRootsRecord> getComparatorByReferencedRetainedSize()