public class ReferenceTreeObject extends Object implements org.openjdk.jmc.common.IMCOldObject
ReferenceTreeModel
.Modifier and Type | Class and Description |
---|---|
static class |
ReferenceTreeObject.ReferenceTreeObjectType |
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_ARRAY_INFO |
static int |
FORMAT_FIELD |
static int |
FORMAT_OTHER_MODIFIERS |
static int |
FORMAT_PACKAGE |
static int |
FORMAT_STATIC_MODIFIER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.openjdk.jmc.common.unit.IQuantity |
getAddress() |
org.openjdk.jmc.common.IMCOldObjectArray |
getArray() |
List<ReferenceTreeObject> |
getChildren() |
String |
getDescription() |
int |
getDistanceFromRoot() |
org.openjdk.jmc.common.IMCOldObjectField |
getField() |
Set<org.openjdk.jmc.common.item.IItem> |
getItems()
This method is used when it is necessary to get information about all objects this object
keeps alive in the
ReferenceTreeModel . |
double |
getLeakRelevance() |
int |
getObjectsKeptAliveCount() |
Map<org.openjdk.jmc.common.unit.IQuantity,ReferenceTreeObject> |
getOldObjectSamples() |
ReferenceTreeObject |
getParent()
This method returns an object that is keeping this object alive.
|
org.openjdk.jmc.common.IMCOldObject |
getReferrer() |
org.openjdk.jmc.common.IMCOldObjectArray |
getReferrerArray() |
org.openjdk.jmc.common.IMCOldObjectField |
getReferrerField() |
int |
getReferrerSkip() |
String |
getRootDescription() |
ReferenceTreeObject |
getRootObject() |
org.openjdk.jmc.common.unit.IQuantity |
getTimestamp() |
org.openjdk.jmc.common.IMCType |
getType() |
int |
hashCode() |
void |
setParent(ReferenceTreeObject parent) |
String |
toString(int displayFormatting)
Returns a string representation of this object.
|
void |
updateOldObjectSamples(ReferenceTreeObject oldobjectrefnode)
This method updates the Root object's Map with allocationTime and its oldObjectReference object (leaves).
|
public static final int FORMAT_PACKAGE
public static final int FORMAT_FIELD
public static final int FORMAT_STATIC_MODIFIER
public static final int FORMAT_OTHER_MODIFIERS
public static final int FORMAT_ARRAY_INFO
public int getDistanceFromRoot()
public double getLeakRelevance()
public Set<org.openjdk.jmc.common.item.IItem> getItems()
ReferenceTreeModel
. E.g. the Mission Control GUI uses this when a
user selects a row in the tree to show everything below it as well in the properties view.IItem
objects this object keeps alive, including
itselfpublic String getRootDescription()
public org.openjdk.jmc.common.unit.IQuantity getAddress()
getAddress
in interface org.openjdk.jmc.common.IMCOldObject
public org.openjdk.jmc.common.IMCOldObjectArray getReferrerArray()
getReferrerArray
in interface org.openjdk.jmc.common.IMCOldObject
public org.openjdk.jmc.common.IMCOldObjectArray getArray()
null
otherwisepublic List<ReferenceTreeObject> getChildren()
public org.openjdk.jmc.common.IMCOldObjectField getReferrerField()
getReferrerField
in interface org.openjdk.jmc.common.IMCOldObject
public org.openjdk.jmc.common.IMCOldObjectField getField()
null
otherwisepublic String getDescription()
getDescription
in interface org.openjdk.jmc.common.IMCOldObject
public int getObjectsKeptAliveCount()
public ReferenceTreeObject getParent()
public org.openjdk.jmc.common.IMCOldObject getReferrer()
getReferrer
in interface org.openjdk.jmc.common.IMCOldObject
public org.openjdk.jmc.common.unit.IQuantity getTimestamp()
public org.openjdk.jmc.common.IMCType getType()
getType
in interface org.openjdk.jmc.common.IMCOldObject
public void setParent(ReferenceTreeObject parent)
parent
- the parent of this objectpublic ReferenceTreeObject getRootObject()
public int getReferrerSkip()
getReferrerSkip
in interface org.openjdk.jmc.common.IMCOldObject
public Map<org.openjdk.jmc.common.unit.IQuantity,ReferenceTreeObject> getOldObjectSamples()
public void updateOldObjectSamples(ReferenceTreeObject oldobjectrefnode)
oldobjectrefnode
- oldObjectReference leaf nodepublic String toString(int displayFormatting)
displayFormatting
- an int describing how this object is to be represented, using bitwise masking of
constants defined in ReferenceTreeObject
Copyright © 2020. All rights reserved.