| org.netbeans.lib.profiler.heap.Instance
All known Subclasses: org.netbeans.lib.profiler.heap.ClassDumpInstance, org.netbeans.lib.profiler.heap.InstanceDump,
Instance | public interface Instance (Code) | | This object represents one instance of java class.
author: Tomas Hurka |
getFieldValues | List getFieldValues()(Code) | | computes the list of instance field values. The order is: fields of this class followed by
super class, etc.
Speed: normal
list of FieldValue instance field values. |
getInstanceId | long getInstanceId()(Code) | | gets unique (in whole heap) ID of this
Instance .
Speed: fast
ID of this Instance |
getInstanceNumber | int getInstanceNumber()(Code) | | gets unique number of this
Instance amoung all instances of the same Java Class.
Instances are numbered sequentially starting from 1.
Speed: fast
unique number of this Instance |
getNearestGCRootPointer | Instance getNearestGCRootPointer()(Code) | | returns next
Instance on the path to the nearest GC root.
Speed: first invocation is slow, all subsequent invocations are fast
next Instance on the path to the nearest GC root, itself if the instance is GC root,null if path to the nearest GC root does not exist |
getReachableSize | int getReachableSize()(Code) | | |
getReferences | List getReferences()(Code) | | returns the list of references to this instance. The references can be of two kinds.
The first one is from
ObjectFieldValue and the second one if from
ArrayItemValue
Speed: slow
list of Value representing all references to this instance |
getRetainedSize | int getRetainedSize()(Code) | | |
getValueOfField | Object getValueOfField(String name)(Code) | | Returns a value object that reflects the specified field of the instance
represented by this
Instance object. Fields are searched from the java.lang.Object.
The first field with the matching name is used.
The name parameter is a String that specifies the simple name of the desired field.
Speed: normal
Parameters: name - the name of the field @return the value for the specified static field in this class.If a field with the specified name is not found null is returned.If the field.getType() is Type object Instance is returned as a field value,for primitive types its corresponding object wapper (Boolean, Integer, Float, etc.) is returned. |
isGCRoot | boolean isGCRoot()(Code) | | returns true if this is instance of GC root.
Speed: normal for first invocation, fast for subsequent
true if this is instance of GC root, false otherwise. |
|
|