public class TraceMethod extends Object
Constructor and Description |
---|
TraceMethod(String signature)
Constructs a TraceMethod with the specified signature.
|
TraceMethod(String signature,
Class<?> clazz)
Deprecated.
|
TraceMethod(String returnType,
Class clazz,
String methodSignature)
Constructs a TraceMethod with the specified signature.
|
TraceMethod(String returnType,
Object object,
String methodSignature)
Constructs a TraceMethod with the specified signature.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getClazz()
The class owning the method.
|
long |
getElapsedCpuTime()
This is the elapsed CPU time since the construction of the TraceMethod until the moment the TraceMethod
is popped from the stack again.
|
long |
getElapsedTime()
This is the elapsed time in milliseconds since the construction of the TraceMethod until the moment the TraceMethod
is popped from the stack again.
|
String |
getMethodName()
The method name inclusive list of parameters.
|
String |
getSignature()
This is the string representation of the method signature.
|
void |
stopTime()
Stops the elapsed (cpu) time since creation of this TraceMethod instance.
|
public TraceMethod(String signature)
signature
- the signature of the TraceMethod@Deprecated public TraceMethod(String signature, Class<?> clazz)
signature
- the signature of the TraceMethodclazz
- the class of the TraceMethodpublic TraceMethod(String returnType, Object object, String methodSignature)
returnType
- the return type of the method as string representationobject
- the object that owns the methodmethodSignature
- the remaining method signature (without return type) inclusive parameter as string representationpublic TraceMethod(String returnType, Class clazz, String methodSignature)
returnType
- the return type of the method as string representationclazz
- the class to which that method belongmethodSignature
- the remaining method signature (without return type) inclusive parameter as string representationpublic String getSignature()
public long getElapsedTime()
public long getElapsedCpuTime()
public Class<?> getClazz()
public String getMethodName()
public void stopTime()
Copyright © 2014 Christof Reichardt. All rights reserved. (Build: 26-May-2014)