spec.harness.analyzer
Class PowerAnalyzer

java.lang.Object
  extended by spec.harness.analyzer.AnalyzerBase
      extended by spec.harness.analyzer.PowerAnalyzer

public class PowerAnalyzer
extends AnalyzerBase


Nested Class Summary
static class PowerAnalyzer.PowerConsumtionResult
           
 
Constructor Summary
PowerAnalyzer()
           
 
Method Summary
 void endMeasurementInterval()
          This method is called at the end of the measurement interval.
 void execute(long time)
          Execution method called at regular intervals for polling stats.
 void setup()
          Setup method called when analyzer is created.
static void setupAnalyzerClass()
           
 void startMeasurementInterval()
          This method is called at the start of the measurement interval.
 void tearDown()
          Tear down method called when analyzer is brought down.
static void tearDownAnalyzerClass()
           
 
Methods inherited from class spec.harness.analyzer.AnalyzerBase
addError, addErrorToSuiteResult, addViolationToSuiteResult, getBenchmarkDuration, getBenchmarkName, getNoOps, isTimedRun, report, report, setIterationResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerAnalyzer

public PowerAnalyzer()
Method Detail

setupAnalyzerClass

public static void setupAnalyzerClass()

tearDownAnalyzerClass

public static void tearDownAnalyzerClass()

setup

public void setup()
Description copied from class: AnalyzerBase
Setup method called when analyzer is created. Initiation work should be done in this one. This is done once per iteration, each time in a new Analyzer instance.

Overrides:
setup in class AnalyzerBase

startMeasurementInterval

public void startMeasurementInterval()
Description copied from class: AnalyzerBase
This method is called at the start of the measurement interval. It is called by the ProgramRunner thread.

Overrides:
startMeasurementInterval in class AnalyzerBase

endMeasurementInterval

public void endMeasurementInterval()
Description copied from class: AnalyzerBase
This method is called at the end of the measurement interval. It is called by the ProgramRunner thread.

Overrides:
endMeasurementInterval in class AnalyzerBase

tearDown

public void tearDown()
Description copied from class: AnalyzerBase
Tear down method called when analyzer is brought down. Reporting work should be done in this one. This is done once per iteration, each time in a new Analyzer instance.

Overrides:
tearDown in class AnalyzerBase

execute

public void execute(long time)
Description copied from class: AnalyzerBase
Execution method called at regular intervals for polling stats.

Specified by:
execute in class AnalyzerBase
Parameters:
time - when the call is made