| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InstructionTimingStrategy
A common interface for modeling the timing behavior of a microprocessor. By abstracting the temporal model behind this interface, Clepsydra can work with a variety of processors without knowing their architectural details.
| Method Summary | |
|---|---|
 int | 
getCycles(Instruction instruction)
Returns the number of cycles required to execute the given Java bytecode instruction.  | 
 int | 
getCycles(InvokeInstruction instruction)
Returns the number of cycles required to execute the given invocation instruction.  | 
 int | 
getCycles(InvokeInstruction instruction,
          boolean cacheHit,
          int methodSize)
Returns the number of cycles required to execute the given invocation instruction.  | 
 int | 
getCycles(ReturnInstruction instruction,
          boolean cacheHit,
          int methodSize)
Returns the number of cycles required to execute the given return instruction.  | 
| Method Detail | 
|---|
int getCycles(Instruction instruction)
              throws UnknownTimingException
instruction - a bytecode instruction whose cycle count is to be determined.
 Must not be of type ReturnInstruction nor InvokeInstruction.
UnknownTimingException - if the opcode is invalid or its cycle count is
 unknown
int getCycles(InvokeInstruction instruction,
              boolean cacheHit,
              int methodSize)
              throws UnknownTimingException
instruction - an invocation instruction whose cycle count is to be
 determined.cacheHit - true if the method being invoked is guaranteed to be in the
 method cache; false otherwisemethodSize - the size, in bytes, of the method that the instruction invokes
UnknownTimingException - if the opcode is invalid or its cycle count is
 unknown
int getCycles(InvokeInstruction instruction)
              throws UnknownTimingException
instruction - an invocation instruction whose cycle count is to be
 determined.
UnknownTimingException - if the opcode is invalid or its cycle count is
 unknown
int getCycles(ReturnInstruction instruction,
              boolean cacheHit,
              int methodSize)
              throws UnknownTimingException
instruction - a return instruction whose cycle count is to be determined.cacheHit - true if the method being returned to is guaranteed to be in the
 method cache; false otherwisemethodSize - the size, in bytes, of the method that is being returned to
UnknownTimingException - if the opcode is invalid or its cycle count is
 unknown
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||