|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.snapshot.MultiplePathsFromGCRootsRecord
public class MultiplePathsFromGCRootsRecord
This class represents a set of paths from the GC roots to different objects, which go through one and the same object.
Constructor Summary | |
---|---|
MultiplePathsFromGCRootsRecord(int objectId,
int level,
ISnapshot snapshot)
A constructor to create the record |
Method Summary | |
---|---|
void |
addPath(int[] path)
This method is used only when the record is built. |
static java.util.Comparator<MultiplePathsFromGCRootsRecord> |
getComparatorByNumberOfReferencedObjects()
Returns a Comparator ordering the records descending by the number of referenced objects. |
static java.util.Comparator<MultiplePathsFromGCRootsRecord> |
getComparatorByReferencedHeapSize()
Returns a Comparator ordering the records descending by the total size of referenced objects. |
static java.util.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 |
java.util.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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 calculationMethod Detail |
---|
public long getReferencedRetainedSize()
public void setReferencedRetainedSize(long referencedRetainedSize)
public MultiplePathsFromGCRootsRecord[] nextLevel()
public void addPath(int[] path)
path
- public java.util.List<int[]> getPaths()
public int getObjectId()
public int getCount()
public int getLevel()
public int[] getReferencedObjects()
public long getReferencedHeapSize() throws SnapshotException
SnapshotException
public static java.util.Comparator<MultiplePathsFromGCRootsRecord> getComparatorByNumberOfReferencedObjects()
public static java.util.Comparator<MultiplePathsFromGCRootsRecord> getComparatorByReferencedHeapSize()
public static java.util.Comparator<MultiplePathsFromGCRootsRecord> getComparatorByReferencedRetainedSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |