avrora.monitors
Class ProfileMonitor.Monitor.CProbe

java.lang.Object
  extended byavrora.sim.Simulator.Probe.Empty
      extended byavrora.monitors.ProfileMonitor.Monitor.CProbe
All Implemented Interfaces:
Simulator.Probe
Enclosing class:
ProfileMonitor.Monitor

public class ProfileMonitor.Monitor.CProbe
extends Simulator.Probe.Empty

The CProbe class implements a simple probe that keeps a count of how many times each instruction in the program has been executed.


Nested Class Summary
 
Nested classes inherited from class avrora.sim.Simulator.Probe
Simulator.Probe.Empty
 
Field Summary
 long[] count
           
 
Constructor Summary
ProfileMonitor.Monitor.CProbe(long[] ic)
           
 
Method Summary
 void fireBefore(State state, int pc)
          The fireBefore() method is called before the probed instruction executes.
 
Methods inherited from class avrora.sim.Simulator.Probe.Empty
fireAfter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

public final long[] count
Constructor Detail

ProfileMonitor.Monitor.CProbe

public ProfileMonitor.Monitor.CProbe(long[] ic)
Method Detail

fireBefore

public void fireBefore(State state,
                       int pc)
Description copied from class: Simulator.Probe.Empty
The fireBefore() method is called before the probed instruction executes. In the implementation of the Empty probe, this method is empty.

Specified by:
fireBefore in interface Simulator.Probe
Overrides:
fireBefore in class Simulator.Probe.Empty
Parameters:
state - the state of the simulation
pc - the address at which this instruction resides