|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.plugins.profiler.ProfileStackFrame
public class ProfileStackFrame
This class defines a data structure for holding information about a stack frame captured by the Directory Server profiler. It will contain the class and method name for this frame, the set of line numbers within that method that were captured along with the number of times they were seen, as well as references to subordinate frames that were encountered.
Constructor Summary | |
---|---|
ProfileStackFrame(java.lang.String className,
java.lang.String methodName)
Creates a new profile stack frame with the provided information. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Indicates the order of this profile stack frame relative to the provided object in a sorted list. |
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this stack frame. |
java.lang.String |
getClassName()
Retrieves the class name for this stack frame. |
java.lang.String |
getHTMLSafeMethodName()
Retrieves the method name for this stack frame in a manner that will be safe for use in an HTML context. |
java.util.HashMap<java.lang.Integer,java.lang.Long> |
getLineNumbers()
Retrieves the mapping between the line numbers associated with this method and the number of occurrences for each of those line numbers. |
java.lang.String |
getMethodName()
Retrieves the method name for this stack frame. |
ProfileStackFrame[] |
getSubordinateFrames()
Retrieves an array containing the subordinate frames that were seen below this frame in stack traces. |
long |
getTotalCount()
Retrieves the total number of times that a frame with this class and method name was seen by the profiler thread. |
int |
hashCode()
Retrieves the hash code for this stack frame. |
boolean |
hasSubFrames()
Indicates whether this stack frame has one or more subordinate frames. |
void |
recurseSubFrames(ProfileStack stack,
int depth,
long count,
java.util.HashMap<java.lang.String,java.util.HashMap<ProfileStack,java.lang.Long>> stacksByMethod)
Recursively processes the frames of the provided stack, adding them as nested subordinate frames of this stack frame. |
java.lang.String |
toString()
Retrieves a string representation of this stack frame. |
void |
updateLineNumberCount(int lineNumber,
long numOccurrences)
Updates the count for the number of occurrences of a given stack frame for the specified line number. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProfileStackFrame(java.lang.String className, java.lang.String methodName)
className
- The class name for use in this stack frame.methodName
- The method name for use in this stack frame.Method Detail |
---|
public java.lang.String getClassName()
public java.lang.String getMethodName()
public java.lang.String getHTMLSafeMethodName()
public java.util.HashMap<java.lang.Integer,java.lang.Long> getLineNumbers()
public void updateLineNumberCount(int lineNumber, long numOccurrences)
lineNumber
- The line number for which to update the count.numOccurrences
- The number of times the specified line was
encountered for this stack frame.public long getTotalCount()
public ProfileStackFrame[] getSubordinateFrames()
public boolean hasSubFrames()
true
if this stack frame has one or more subordinate
frames, or false
if not.public void recurseSubFrames(ProfileStack stack, int depth, long count, java.util.HashMap<java.lang.String,java.util.HashMap<ProfileStack,java.lang.Long>> stacksByMethod)
stack
- The stack trace to use to obtain the frames.depth
- The slot of the next frame to process in the
provided array.count
- The number of occurrences for the provided stack.stacksByMethod
- The set of stack traces mapped from method name to
their corresponding stack traces.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 may be considered equal
to this stack frame, or false
if not.public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- The objectfor which to make the comparison.
java.lang.ClassCastException
- If the provided object is not a profile stack
frame.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |