avrora.sim.util
Class MemoryProfiler

java.lang.Object
  extended byavrora.sim.util.MemoryProfiler
All Implemented Interfaces:
Simulator.Watch

public class MemoryProfiler
extends java.lang.Object
implements Simulator.Watch


Field Summary
 long[] rcount
           
 long[] wcount
           
 
Constructor Summary
MemoryProfiler(int size)
           
 
Method Summary
 void fireAfterRead(Instr i, int address, State state, int data_addr, byte value)
          The fireAfterRead() method is called after the data address is read by the program.
 void fireAfterWrite(Instr i, int address, State state, int data_addr, byte value)
          The fireAfterWrite() method is called after the data address is written by the program.
 void fireBeforeRead(Instr i, int address, State state, int data_addr, byte value)
          The fireBeforeRead() method is called before the data address is read by the program.
 void fireBeforeWrite(Instr i, int address, State state, int data_addr, byte value)
          The fireBeforeWrite() method is called before the data address is written by the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcount

public final long[] rcount

wcount

public final long[] wcount
Constructor Detail

MemoryProfiler

public MemoryProfiler(int size)
Method Detail

fireBeforeRead

public void fireBeforeRead(Instr i,
                           int address,
                           State state,
                           int data_addr,
                           byte value)
Description copied from interface: Simulator.Watch
The fireBeforeRead() method is called before the data address is read by the program.

Specified by:
fireBeforeRead in interface Simulator.Watch
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value of the memory location being read

fireBeforeWrite

public void fireBeforeWrite(Instr i,
                            int address,
                            State state,
                            int data_addr,
                            byte value)
Description copied from interface: Simulator.Watch
The fireBeforeWrite() method is called before the data address is written by the program.

Specified by:
fireBeforeWrite in interface Simulator.Watch
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value being written to the memory location

fireAfterRead

public void fireAfterRead(Instr i,
                          int address,
                          State state,
                          int data_addr,
                          byte value)
Description copied from interface: Simulator.Watch
The fireAfterRead() method is called after the data address is read by the program.

Specified by:
fireAfterRead in interface Simulator.Watch
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value of the memory location being read

fireAfterWrite

public void fireAfterWrite(Instr i,
                           int address,
                           State state,
                           int data_addr,
                           byte value)
Description copied from interface: Simulator.Watch
The fireAfterWrite() method is called after the data address is written by the program.

Specified by:
fireAfterWrite in interface Simulator.Watch
Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value being written to the memory location