|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodCacheStrategy
A common interface for various method cache analysis strategies. By abstracting strategies behind this interface, Clepsydra can use a variety of method cache strategies without knowing the details of how they work.
| Nested Class Summary | |
|---|---|
static class |
MethodCacheStrategy.HitRatio
A simple encapsulation of a cache hit ratio. |
| Method Summary | |
|---|---|
MethodCacheStrategy.HitRatio |
getInvokeHitRatio(InvokeInstruction invokeInstruction,
Node node,
LoopBoundStrategy loopBoundStrategy)
Returns the cache hit ratio for the given invoke instruction. |
boolean |
isReturnHit(ReturnStatement returnStatement)
Returns true if the given return statement is guaranteed to result in a method cache hit. |
| Method Detail |
|---|
MethodCacheStrategy.HitRatio getInvokeHitRatio(InvokeInstruction invokeInstruction,
Node node,
LoopBoundStrategy loopBoundStrategy)
invokeInstruction - a bytecode instruction that invokes a methodnode - the node in the control flow tree in which the invoke instruction livesloopBoundStrategy - if the invocation occurs in a loop, this algorithm is
used to determine the maximum number of iterations of the loop
boolean isReturnHit(ReturnStatement returnStatement)
returnStatement - a control flow node representing a return statement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||