org.eclipse.test.internal.performance
Class OSPerformanceMeter

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.OSPerformanceMeter
Direct Known Subclasses:
JdtCorePerformanceMeter

public class OSPerformanceMeter
extends InternalPerformanceMeter

Performance meter that makes its measurements with OS functionality.


Field Summary
 
Fields inherited from class org.eclipse.test.internal.performance.InternalPerformanceMeter
AFTER, AVERAGE, BEFORE, SIZE, STDEV
 
Constructor Summary
OSPerformanceMeter(java.lang.String scenarioId)
           
 
Method Summary
 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
commit, getScenarioName, setComment, tagAsSummary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSPerformanceMeter

public OSPerformanceMeter(java.lang.String scenarioId)
Parameters:
scenarioId - the scenario id
Method Detail

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

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

getSample

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