org.eclipse.test.internal.performance
Class SystemTimePerformanceMeter

java.lang.Object
  extended by org.eclipse.test.performance.PerformanceMeter
      extended by org.eclipse.test.internal.performance.InternalPerformanceMeter
          extended by org.eclipse.test.internal.performance.SystemTimePerformanceMeter

public class SystemTimePerformanceMeter
extends InternalPerformanceMeter


Field Summary
 
Fields inherited from class org.eclipse.test.internal.performance.InternalPerformanceMeter
AFTER, AVERAGE, BEFORE, SIZE, STDEV
 
Constructor Summary
SystemTimePerformanceMeter(java.lang.String scenarioId)
           
SystemTimePerformanceMeter(java.lang.String scenarioId, int initalCapacity)
           
 
Method Summary
 void commit()
          Called exactly once after repeated measurements are done and before their analysis.
 void dispose()
          Dispose associated resources.
 Sample getSample()
           
 void start()
          Called immediately before the operation to measure.
 void stop()
          Called immediately after the operation to measure.
 
Methods inherited from class org.eclipse.test.internal.performance.InternalPerformanceMeter
getScenarioName, setComment, tagAsSummary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTimePerformanceMeter

public SystemTimePerformanceMeter(java.lang.String scenarioId)
Parameters:
scenarioId - the scenario id

SystemTimePerformanceMeter

public SystemTimePerformanceMeter(java.lang.String scenarioId,
                                  int initalCapacity)
Parameters:
scenarioId - the scenario id
initalCapacity - the initial capacity in the number of measurments
Method Detail

start

public void start()
Description copied from class: PerformanceMeter
Called immediately before the operation to measure. Must be followed by a call to PerformanceMeter.stop() before subsequent calls to this method or PerformanceMeter.commit().

Specified by:
start in class PerformanceMeter

stop

public void stop()
Description copied from class: PerformanceMeter
Called immediately after the operation to measure. Must be preceded by a call to PerformanceMeter.start(), that follows any previous call to this method.

Specified by:
stop in class PerformanceMeter

commit

public void commit()
Description copied from class: PerformanceMeter
Called exactly once after repeated measurements are done and before their analysis. Afterwards PerformanceMeter.start() and PerformanceMeter.stop() must not be called.

Overrides:
commit in class InternalPerformanceMeter

dispose

public void dispose()
Description copied from class: PerformanceMeter
Dispose associated resources. Clients must call this method exactly once. Afterwards no methods must be called on the performance meter.

Overrides:
dispose in class InternalPerformanceMeter

getSample

public Sample getSample()
Specified by:
getSample in class InternalPerformanceMeter