avrora.sim
Interface Simulator.Probe

All Known Implementing Classes:
BranchCounter, Counter, MulticastProbe, ProgramProfiler, SequenceProbe, Simulator.InstructionCountTimeout
Enclosing interface:
Simulator

public static interface Simulator.Probe

The Simulator.Probe interface represents a programmer-defined probe that can be inserted at particular instructions or at every instruction. This probe allows execution of client code for profiling, analysis, or program understanding. A method that is invoked before an instruction is executed and a method that is invoked after the instruction is executed are provided, although most probes will use only one of these methods.


Method Summary
 void fireAfter(Instr i, int address, State state)
          The fireAfter() method is called after the probed instruction executes.
 void fireBefore(Instr i, int address, State state)
          The fireBefore() method is called before the probed instruction executes.
 

Method Detail

fireBefore

public void fireBefore(Instr i,
                       int address,
                       State state)
The fireBefore() method is called before the probed instruction executes.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation

fireAfter

public void fireAfter(Instr i,
                      int address,
                      State state)
The fireAfter() method is called after the probed instruction executes.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation