public interface TraceHandler
TraceToolbox instance, and it may also accept a String argument.
public class MyHandler implements TraceHandler {
public MyHandler(TraceToolbox toolbox, String arg) {
...
}
...
}
Trace,
TraceAgent| Modifier and Type | Method and Description |
|---|---|
void |
enterMethod(int mid)
Called by a traced method upon entry.
|
void |
enterMethod(int mid,
Object... arguments)
Called by a traced method upon entry.
|
void |
enterMethod(int mid,
Object argument)
Called by a traced method upon entry.
|
void |
exitMethod(int mid)
Called by a traced method upon exit.
|
void |
exitMethod(int mid,
long timeNanos)
Called by a traced method upon exit.
|
void |
exitMethod(int mid,
Object result)
Called by a traced method upon exit.
|
void |
exitMethod(int mid,
Object result,
long timeNanos)
Called by a traced method upon exit.
|
void |
exitMethod(int mid,
Throwable t)
Called by a traced method upon exit caused by a thrown exception.
|
void |
exitMethod(int mid,
Throwable t,
long timeNanos)
Called by a traced method upon exit caused by a thrown exception.
|
TraceModes |
getTraceModes(String className)
Return allowed tracing modes for the given class.
|
TraceModes getTraceModes(String className)
className - full name of class which may contain traced methodsvoid enterMethod(int mid)
mid - method idvoid enterMethod(int mid,
Object argument)
mid - method idargument - argument passed to method; is "this" for non-static methodvoid enterMethod(int mid,
Object... arguments)
mid - method idarguments - arguments passed to method; first is "this" for non-static methodvoid exitMethod(int mid)
mid - method idvoid exitMethod(int mid,
long timeNanos)
mid - method idtimeNanos - total execution time of method, in nanosecondsvoid exitMethod(int mid,
Object result)
mid - method idresult - method return valuevoid exitMethod(int mid,
Object result,
long timeNanos)
mid - method idresult - method return valuetimeNanos - total execution time of method, in nanosecondsvoid exitMethod(int mid,
Throwable t)
mid - method idt - exception thrown by methodvoid exitMethod(int mid,
Throwable t,
long timeNanos)
mid - method idt - exception thrown by methodtimeNanos - total execution time of method, in nanosecondsCopyright © 2006–2015 Cojen. All rights reserved.