public class PollingAnalyzerExample
- extends AnalyzerBase
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
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.
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
public void execute(long time)
- Description copied from class:
- Execution method called at regular intervals for polling stats.
- Specified by:
execute in class
time - when the call is made