|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spec.harness.analyzer.AnalyzerBase spec.harness.analyzer.PollingAnalyzerExample
public class PollingAnalyzerExample
This Analyzer is an example of an Analyzer that is based on the polling mechanism available in the SPECjvm2008 analyzer functionality. The harness will call the method execute at a regular time interval. The time interval is controlled by the property specjvm.benchmark.analyzer.frequency which by default is 1 second. This Analyzer type is good to use when for example a resource should be monitored throughout the run. In this example the number of operations done will be gathered. It is a contrived example.
Nested Class Summary | |
---|---|
static class |
PollingAnalyzerExample.NumberOfOperations
|
Constructor Summary | |
---|---|
PollingAnalyzerExample()
|
Method Summary | |
---|---|
void |
execute(long time)
Execution method called at regular intervals for polling stats. |
Methods inherited from class spec.harness.analyzer.AnalyzerBase |
---|
addError, addErrorToSuiteResult, addViolationToSuiteResult, endMeasurementInterval, getBenchmarkDuration, getBenchmarkName, getNoOps, isTimedRun, report, report, setIterationResult, setup, setupAnalyzerClass, startMeasurementInterval, tearDown, tearDownAnalyzerClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PollingAnalyzerExample()
Method Detail |
---|
public void execute(long time)
AnalyzerBase
execute
in class AnalyzerBase
time
- when the call is made
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |