|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchord.runtime.BasicEventHandler
public class BasicEventHandler
Basic handler of events generated during an instrumented program's
execution for use by single-JVM dynamic analyses.
Methods init(String) and done() are called when
event handling starts and ends, respectively, at runtime. Who calls
these methods depends upon whether or not the dynamic analysis using
this event handler uses JVMTI
(see BasicDynamicAnalysis.useJvmti()):
- If it uses JVMTI, then these methods are called from the JVMTI agent
implemented in main/agent/; see that directory for more details.
- If it does not use JVMTI, then calls to these methods are injected
by the instrumentor at the entry and exit of the bytecode of the
main method of the analyzed program; see the constructor of class
BasicInstrumentor for more details.
| Field Summary | |
|---|---|
protected static int |
currentId
Unique ID given to each object created at runtime. |
protected static WeakIdentityHashMap |
objmap
|
protected static boolean |
trace
Flag determining when it is safe to start handling events at runtime. |
| Constructor Summary | |
|---|---|
BasicEventHandler()
|
|
| Method Summary | |
|---|---|
static void |
done()
Method signaling the end of event handling by a dynamic analysis. |
static int |
getObjectId(java.lang.Object o)
|
static long |
getPrimitiveId(int oId,
int fId)
|
static void |
init(java.lang.String args)
Method signaling the start of event handling by a dynamic analysis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean trace
init(String) method which is called by the handler for the
JVMTI event "VMInit" (see file main/src/agent/chord_instr_agent.cpp
for the definition of this handler).
protected static int currentId
protected static WeakIdentityHashMap objmap
| Constructor Detail |
|---|
public BasicEventHandler()
| Method Detail |
|---|
public static int getObjectId(java.lang.Object o)
public static long getPrimitiveId(int oId,
int fId)
public static void init(java.lang.String args)
public static void done()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||