chord.runtime
Class TraceEventHandler

java.lang.Object
  extended by chord.runtime.BasicEventHandler
      extended by chord.runtime.TraceEventHandler
Direct Known Subclasses:
EventHandler, ReflectEventHandler

public class TraceEventHandler
extends BasicEventHandler

Basic handler of events generated during an instrumented program's execution for use by multi-JVM dynamic analyses.

Author:
Mayur Naik (mhn@cs.stanford.edu)

Field Summary
protected static ByteBufferedFile buffer
          A buffer used to buffer events sent from event-generating JVM to event-handling JVM.
static java.lang.String TRACE_BLOCK_SIZE_KEY
           
static java.lang.String TRACE_FILE_KEY
           
 
Fields inherited from class chord.runtime.BasicEventHandler
currentId, objmap, trace
 
Constructor Summary
TraceEventHandler()
           
 
Method Summary
static void done()
           
static void init(java.lang.String args)
          This method is called during handing of JVMTI event "VMInit".
 
Methods inherited from class chord.runtime.BasicEventHandler
getObjectId, getPrimitiveId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_BLOCK_SIZE_KEY

public static final java.lang.String TRACE_BLOCK_SIZE_KEY
See Also:
Constant Field Values

TRACE_FILE_KEY

public static final java.lang.String TRACE_FILE_KEY
See Also:
Constant Field Values

buffer

protected static ByteBufferedFile buffer
A buffer used to buffer events sent from event-generating JVM to event-handling JVM. It is irrelevant if events are generated/handled by the same JVM.

Constructor Detail

TraceEventHandler

public TraceEventHandler()
Method Detail

init

public static void init(java.lang.String args)
This method is called during handing of JVMTI event "VMInit". arguments: trace_file, trace_block_size if trace_file is absent then buffer is not created (i.e. it is assumed that dynamic analysis is intra-JVM).


done

public static void done()