avrora.sim.util
Class MemoryProfiler
java.lang.Object
avrora.sim.Simulator.Watch.Empty
avrora.sim.util.MemoryProfiler
- All Implemented Interfaces:
- Simulator.Watch
- public class MemoryProfiler
- extends Simulator.Watch.Empty
Method Summary |
void |
fireBeforeRead(State state,
int data_addr)
The fireBeforeRead() method is called before the data address is read by the program.
|
void |
fireBeforeWrite(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(State state,
int data_addr)
- Description copied from class:
Simulator.Watch.Empty
- The
fireBeforeRead()
method is called before the data address is read by the program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireBeforeRead
in interface Simulator.Watch
- Overrides:
fireBeforeRead
in class Simulator.Watch.Empty
- Parameters:
state
- the state of the simulationdata_addr
- the address of the data being referenced
fireBeforeWrite
public void fireBeforeWrite(State state,
int data_addr,
byte value)
- Description copied from class:
Simulator.Watch.Empty
- The
fireBeforeWrite()
method is called before the data address is written by the
program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireBeforeWrite
in interface Simulator.Watch
- Overrides:
fireBeforeWrite
in class Simulator.Watch.Empty
- Parameters:
state
- the state of the simulationdata_addr
- the address of the data being referencedvalue
- the value being written to the memory location