|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.util.CallTimer
Records call statistics for Lighthouse methods.
Field Summary | |
static java.lang.String |
CLASS
|
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Method Summary | |
static void |
clear()
Discard all data about known methods (including statistics, calling relationships and the methods themselves). |
static void |
entry(java.lang.String methodName)
Records a call to the specified method. |
static void |
entry(java.lang.String methodName,
long timeMillis)
Records a call to the specified method at the specified time. |
static void |
exception(java.lang.String methodName)
Records exceptional exit from the specified method. |
static void |
exception(java.lang.String methodName,
long timeMillis)
Records exceptional exit from the specified method at the specified time. |
static void |
exit(java.lang.String methodName)
Records normal exit from the specified method. |
static void |
exit(java.lang.String methodName,
long timeMillis)
Records normal exit from the specified method at the specified time. |
void |
fromXml(org.w3c.dom.Element e)
De-Serialize the call timer from an XML Element |
void |
fromXml(java.lang.String data)
De-Serialize the call timer from an XML string data |
static CallTimer |
getCallTimer()
|
java.lang.String |
getElementName()
Return the element name. |
static java.lang.String |
getRequestor()
|
static long |
getStartTime()
|
static CallStatistics[] |
getStatistics()
|
static CallStatistics |
getStatistics(java.lang.String methodName)
|
static CallStatistics |
getStatistics(java.lang.String methodName,
java.lang.String caller)
|
static long |
getStopTime()
|
static void |
info(java.lang.String methodName)
Records a call to trace (e.g., to Trace.info(long, java.lang.Class, java.lang.String, java.lang.String) )
from within a specified method. |
static void |
info(java.lang.String methodName,
long timeMillis)
Records a call to trace (e.g., to Trace.info(long, java.lang.Class, java.lang.String, java.lang.String) )
from within the specified method
at the specified time. |
static boolean |
isCurrentlyTiming()
|
static java.util.List |
listCalledBy(java.lang.String methodName)
|
static java.util.List |
listCallersOf(java.lang.String methodName)
|
static java.util.List |
listMethodNames()
|
static java.util.List |
listThreads()
|
static void |
start(java.lang.String requestor)
|
static void |
stop(java.lang.String requestor)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize the call timer to an XML string buffer. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String CLASS
public static final java.lang.String ELEMENT
Method Detail |
public static boolean isCurrentlyTiming()
public static long getStartTime()
public static long getStopTime()
public static java.lang.String getRequestor()
public static CallTimer getCallTimer()
public static void entry(java.lang.String methodName)
public static void entry(java.lang.String methodName, long timeMillis)
public static void info(java.lang.String methodName)
Trace.info(long, java.lang.Class, java.lang.String, java.lang.String)
)
from within a specified method.
public static void info(java.lang.String methodName, long timeMillis)
Trace.info(long, java.lang.Class, java.lang.String, java.lang.String)
)
from within the specified method
at the specified time.
public static void exception(java.lang.String methodName)
public static void exception(java.lang.String methodName, long timeMillis)
public static void exit(java.lang.String methodName)
public static void exit(java.lang.String methodName, long timeMillis)
public static CallStatistics[] getStatistics()
call statistics
for each method.
Aggregate statistics are summary timings for all callers of a method.
public static CallStatistics getStatistics(java.lang.String methodName)
call statistics
for the specified method.
Aggregate statistics are summary timings for all callers of a method.
public static CallStatistics getStatistics(java.lang.String methodName, java.lang.String caller)
call statistics
for the specified method and caller.
Caller-specific statistics are timings of the specified method when called by the specified caller.
public static java.util.List listMethodNames()
public static java.util.List listCallersOf(java.lang.String methodName)
String
.public static java.util.List listCalledBy(java.lang.String methodName)
String
.public static java.util.List listThreads()
Thread
.public static void clear()
To clear statistics (but leave the known methods
and their calling relationships),
see #resetStatistics
.
To clear statistics and calling relationships
(but leave alone the set of known methods),
see #resetCallingRelationships
.
Execution of the product automatically rebuilds this information incrementally the product code executes (unless configuration disables this).
public static void start(java.lang.String requestor)
public static void stop(java.lang.String requestor)
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void fromXml(java.lang.String data) throws WavesetException
WavesetException
public void fromXml(org.w3c.dom.Element e) throws WavesetException
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |