|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.example.fibonacci.RunExample
public class RunExample
Runs ByCounter on the Fibonacci algorithm and stores the counting results.
This example shows how to use ByCounter to instrument a specific method and
execute it not by itself, but in its regular context, i.e. as in the method
countFibonacciOneIteration()
.
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
Logger of this class. |
Constructor Summary | |
---|---|
RunExample()
|
Method Summary | |
---|---|
static void |
countFibonacciOneIteration()
Testcase for which the Bytecode instructions should be counted. |
static void |
main(java.lang.String[] args)
Wrapper to start the Bytecode counting. |
void |
measureBytecodeInstructionsInstanceMethod(long rounds)
Measures the issued Bytecode instructions for the FibonacciAlgorithm class under test. |
void |
measureBytecodeInstructionsInstanceMethodContent(long rounds)
Measures the issued Bytecode instructions for the FibonacciAlgorithm class under test. |
void |
measureBytecodeInstructionsStaticMethod()
Measures the issued Bytecode instructions for the FibonacciAlgorithm class under test. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
Constructor Detail |
---|
public RunExample()
Method Detail |
---|
public void measureBytecodeInstructionsStaticMethod()
public void measureBytecodeInstructionsInstanceMethod(long rounds)
rounds
- Execution parameter of algorithm under test.public void measureBytecodeInstructionsInstanceMethodContent(long rounds)
rounds
- Execution parameter of algorithm under test.public static void countFibonacciOneIteration()
public static void main(java.lang.String[] args)
args
- Not used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |