|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.plugins.profiler.ProfileStack
public class ProfileStack
This class defines a data structure that may be used to hold information about a thread stack trace.
Field Summary | |
---|---|
static int |
LINE_NUMBER_NATIVE
The line number that will be used for stack frames in which the line number is unknown because it is a native method. |
static int |
LINE_NUMBER_UNKNOWN
The line number that will be used for stack frames in which the line number is unknown but it is not a native method. |
Constructor Summary | |
---|---|
ProfileStack(java.lang.StackTraceElement[] stackElements)
Creates a new profile stack with the provided information. |
Method Summary | |
---|---|
static ProfileStack |
decode(ASN1Element stackElement)
Decodes the contents of the provided element as a profile stack. |
ASN1Element |
encode()
Encodes this profile stack for writing to the capture file. |
boolean |
equals(java.lang.Object o)
Indicates whether to the provided object is equal to this profile stack. |
java.lang.String |
getClassName(int depth)
Retrieves the class name from the specified frame in the stack. |
java.lang.String[] |
getClassNames()
Retrieves the class names in this stack. |
int |
getLineNumber(int depth)
Retrieves the line number from the specified frame in the stack. |
int[] |
getLineNumbers()
Retrieves the line numbers in this stack. |
java.lang.String |
getMethodName(int depth)
Retrieves the method name from the specified frame in the stack. |
java.lang.String[] |
getMethodNames()
Retrieves the method names in this stack. |
int |
getNumFrames()
Retrieves the number of frames in this stack. |
int |
hashCode()
Retrieves the hash code for this profile stack. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LINE_NUMBER_UNKNOWN
public static final int LINE_NUMBER_NATIVE
Constructor Detail |
---|
public ProfileStack(java.lang.StackTraceElement[] stackElements)
stackElements
- The stack trace elements to use to create this
profile stack.Method Detail |
---|
public int getNumFrames()
public java.lang.String[] getClassNames()
public java.lang.String getClassName(int depth)
depth
- The depth of the frame to retrieve, with the first frame
being frame zero.
public java.lang.String[] getMethodNames()
public java.lang.String getMethodName(int depth)
depth
- The depth of the frame to retrieve, with the first frame
being frame zero.
public int[] getLineNumbers()
public int getLineNumber(int depth)
depth
- The depth of the frame for which to retrieve the line
number.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.
true
if the provided object is a profile stack object
with the same set of class names, method names, and line numbers
as this profile stack, or false
if not.public ASN1Element encode()
public static ProfileStack decode(ASN1Element stackElement)
stackElement
- The ASN.1 element containing the encoded profile
stack information.
null
if the element
could not be decoded for some reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |