avrora.sim.util
Class MemoryProfiler
java.lang.Object
avrora.sim.util.MemoryProfiler
- All Implemented Interfaces:
- Simulator.Watch
- public class MemoryProfiler
- extends java.lang.Object
- implements Simulator.Watch
|
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 |
rcount
public final long[] rcount
wcount
public final long[] wcount
MemoryProfiler
public MemoryProfiler(int size)
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 probedaddress - the address at which this instruction residesstate - the state of the simulationdata_addr - the address of the data being referencedvalue - 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 probedaddress - the address at which this instruction residesstate - the state of the simulationdata_addr - the address of the data being referencedvalue - 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 probedaddress - the address at which this instruction residesstate - the state of the simulationdata_addr - the address of the data being referencedvalue - 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 probedaddress - the address at which this instruction residesstate - the state of the simulationdata_addr - the address of the data being referencedvalue - the value being written to the memory location