|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.jdynpur.Tracer
public class Tracer
Methods in this class are called by injected code to write trace events.
This class continously writes a trace of events into file
trace.out
. If a suffix file (a file named
suffix_*
exists, then the suffix of the filename (e.g. file
name suffix_0 -> suffix = 0 -> file name = trace.out_0) is appended to the
name of the outputfile.
Field Summary | |
---|---|
static int |
EV_ARRAYCREATED
Constant for array creation event. |
static int |
EV_ARRAYMODIFIED
Constant for array modification event. |
static int |
EV_DYNAMICMETHODEND
Constant for start of dynamic method event. |
static int |
EV_DYNAMICMETHODSTART
Constant for start of dynamic method event. |
static int |
EV_FIELDID
|
static int |
EV_FIELDWRITE
Constant for field write event. |
static int |
EV_METHODID
|
static int |
EV_OBJECTARRAYMODIFIED
|
static int |
EV_OBJECTCREATION
Constant for object creation event. |
static int |
EV_OBJECTFIELDWRITE
|
static int |
EV_PARAMETER
|
static int |
EV_STATICFIELDWRITE
Constant for static field write event. |
static int |
EV_STATICMETHODEND
Constant for end of static method end event. |
static int |
EV_STATICMETHODSTART
Constant for start of static method event. |
static org.softevo.util.ObjectIdMapper<org.softevo.util.asm.FieldIdentifier> |
fieldIdentfierMap
|
static org.softevo.util.asm.MethodIdentifierMapGenerator |
methodIdentifierMap
|
static int |
NULL
Constant for null value. |
static java.lang.String |
OUTPUTFILENAME
The base name for the output file. |
static int |
STATIC
Constant indicating access to a static variable or execution of a static method. |
static boolean |
traceParameterMutability
|
Constructor Summary | |
---|---|
Tracer()
|
Method Summary | |
---|---|
static void |
addArraysRecursively(java.lang.Object[] array,
int depth)
This method is called to record creation of multi dimensional arrays. |
static void |
arrayCreated(java.lang.Object object)
Called whenever a new array was created. |
static void |
arrayModified(java.lang.Object object)
Called whenever an entry in an array is modified. |
static void |
dynamicMethodEnded(int methodId)
Called whenever a dynamic method has just finished execution. |
static void |
dynamicMethodStarted(int methodId,
java.lang.Object thisObject)
Called whenever a dynamic method is started. |
static void |
fieldWritten(java.lang.Object object)
Called whenever a field is written in an object. |
static void |
objectArrayModified(java.lang.Object array,
int index,
java.lang.Object value)
|
static void |
objectCreated(java.lang.Object object)
Called whenever a new object is created. |
static void |
objectFieldWritten(java.lang.Object receiver,
java.lang.Object value,
int fieldId)
|
static void |
parameterPassed(int index,
java.lang.Object parameter)
|
static void |
staticFieldWritten()
Called whenever a static field was written. |
static void |
staticMethodEnded(int methodId)
Called whenever a static method has just finished execution. |
static void |
staticMethodStarted(int methodId)
Called whenever a static method is started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.softevo.util.asm.MethodIdentifierMapGenerator methodIdentifierMap
public static org.softevo.util.ObjectIdMapper<org.softevo.util.asm.FieldIdentifier> fieldIdentfierMap
public static final java.lang.String OUTPUTFILENAME
public static final int EV_OBJECTCREATION
public static final int EV_FIELDWRITE
public static final int EV_STATICFIELDWRITE
public static final int EV_DYNAMICMETHODSTART
public static final int EV_STATICMETHODSTART
public static final int EV_DYNAMICMETHODEND
public static final int EV_STATICMETHODEND
public static final int EV_ARRAYCREATED
public static final int EV_ARRAYMODIFIED
public static final int EV_METHODID
public static final int EV_PARAMETER
public static final int EV_FIELDID
public static final int EV_OBJECTFIELDWRITE
public static final int EV_OBJECTARRAYMODIFIED
public static final boolean traceParameterMutability
public static final int STATIC
public static final int NULL
Constructor Detail |
---|
public Tracer()
Method Detail |
---|
public static void objectFieldWritten(java.lang.Object receiver, java.lang.Object value, int fieldId)
public static void fieldWritten(java.lang.Object object)
object
- the modified objectpublic static void objectCreated(java.lang.Object object)
object
- the object that is createdpublic static void dynamicMethodStarted(int methodId, java.lang.Object thisObject)
methodId
- the id of the method that is startedthisObject
- the object the method is invoked onpublic static void parameterPassed(int index, java.lang.Object parameter)
public static void staticMethodStarted(int methodId)
methodId
- the id of the method that is startedpublic static void dynamicMethodEnded(int methodId)
methodId
- the id of the methodpublic static void staticMethodEnded(int methodId)
methodId
- the id of the methodpublic static void staticFieldWritten()
public static void arrayCreated(java.lang.Object object)
object
- the array createdpublic static void arrayModified(java.lang.Object object)
object
- the array that was modifiedpublic static void objectArrayModified(java.lang.Object array, int index, java.lang.Object value)
public static void addArraysRecursively(java.lang.Object[] array, int depth)
array
- the object array, possibly containing more object arraysdepth
- the recursion depth
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |