org.jikesrvm.adaptive.measurements.instrumentation
Class Instrumentation

java.lang.Object
  extended by org.jikesrvm.adaptive.measurements.instrumentation.Instrumentation

public final class Instrumentation
extends Object

This class is used to provide general functionality useful to instrumenting methods.


Field Summary
static InstrumentedEventCounterManager eventCounterManager
          A pointer to a InstrumentedEventCounterManager, (See InstrumentedEventCounterManager.java for the idea behind a counter manager) There can be multiple managers in use at the same time (for example, one per method)., but for now we just use one for everything.
private static boolean instrumentationEnabled
           
 
Constructor Summary
Instrumentation()
           
 
Method Summary
static void boot(AOSOptions options)
          Called at boot time
(package private) static void disableInstrumentation()
          Calling this routine causes all future compilations not to insert instrumentation, regardless of what the options say.
(package private) static void enableInstrumentation()
          Enable instrumentations, so that future compilations will not perform any instrumentation.
static boolean instrumentationEnabled()
          Is it currently O.K. to compile a method and insert instrumentation?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventCounterManager

public static InstrumentedEventCounterManager eventCounterManager
A pointer to a InstrumentedEventCounterManager, (See InstrumentedEventCounterManager.java for the idea behind a counter manager) There can be multiple managers in use at the same time (for example, one per method)., but for now we just use one for everything.


instrumentationEnabled

private static boolean instrumentationEnabled
Constructor Detail

Instrumentation

public Instrumentation()
Method Detail

boot

public static void boot(AOSOptions options)
Called at boot time


disableInstrumentation

static void disableInstrumentation()
Calling this routine causes all future compilations not to insert instrumentation, regardless of what the options say. Used during system shutdown. Note, this method will not stop instrumentation in currently compiled methods from executing.


enableInstrumentation

static void enableInstrumentation()
Enable instrumentations, so that future compilations will not perform any instrumentation.


instrumentationEnabled

public static boolean instrumentationEnabled()
Is it currently O.K. to compile a method and insert instrumentation?