Simulator.Probe
interface represents a programmer-defined probe that can be inserted at a particular instruction in the program. or at every instruction. Probes can be usedfor profiling, analysis, or program understanding. The fireBefore()
and fireAfter()
methods are called before and after the target instruction executes in simulation. Probes can also be inserted in the "main loop" of the interpreter, so that the probe fires before and after every instruction executed.
@author Ben L. Titzer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|