|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.snapshot.model.GCRootInfo
public abstract class GCRootInfo
Describes a garbage collection root.
| Nested Class Summary | |
|---|---|
static interface |
GCRootInfo.Type
Reasons why an heap object is a garbage collection root. |
| Constructor Summary | |
|---|---|
GCRootInfo(long objectAddress,
long contextAddress,
int type)
Create a description of a Garbage Collection root |
|
| Method Summary | |
|---|---|
long |
getContextAddress()
The object address of the source of the root |
int |
getContextId()
The object id of the source of the root, if there is a source |
long |
getObjectAddress()
The object address of the retained object |
int |
getObjectId()
The object id of the retained object |
int |
getType()
The reason for the root |
static String |
getTypeAsString(int type)
A printable version of the type |
static String |
getTypeSetAsString(GCRootInfo[] roots)
A combined representation of the types of several roots. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GCRootInfo(long objectAddress,
long contextAddress,
int type)
objectAddress - the object which is retainedcontextAddress - the source of the retention - e.g. a thread address, or 0 for nonetype - the reason the object is retained GCRootInfo.Type| Method Detail |
|---|
public int getObjectId()
public long getObjectAddress()
public long getContextAddress()
public int getContextId()
public int getType()
GCRootInfo.Typepublic static String getTypeAsString(int type)
type - as GCRootInfo.Type
GCRootInfo.Typepublic static String getTypeSetAsString(GCRootInfo[] roots)
roots - an array of roots to get the combined type from
GCRootInfo.Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||