org.eclipse.test.internal.performance
Class InternalPerformanceMeter

java.lang.Object
  extended by org.eclipse.test.performance.PerformanceMeter
      extended by org.eclipse.test.internal.performance.InternalPerformanceMeter
Direct Known Subclasses:
OSPerformanceMeter, SystemTimePerformanceMeter

public abstract class InternalPerformanceMeter
extends PerformanceMeter


Field Summary
static int AFTER
           
static int AVERAGE
           
static int BEFORE
           
static int SIZE
           
static int STDEV
           
 
Constructor Summary
InternalPerformanceMeter(java.lang.String scenarioId)
           
 
Method Summary
 void commit()
          Called exactly once after repeated measurements are done and before their analysis.
 void dispose()
          Dispose associated resources.
abstract  Sample getSample()
           
 java.lang.String getScenarioName()
          Answer the scenario ID.
 void setComment(int commentType, java.lang.String comment)
           
 void tagAsSummary(boolean global, java.lang.String shortName, Dimension[] dims)
           
 
Methods inherited from class org.eclipse.test.performance.PerformanceMeter
start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVERAGE

public static final int AVERAGE
See Also:
Constant Field Values

SIZE

public static final int SIZE
See Also:
Constant Field Values

STDEV

public static final int STDEV
See Also:
Constant Field Values

BEFORE

public static final int BEFORE
See Also:
Constant Field Values

AFTER

public static final int AFTER
See Also:
Constant Field Values
Constructor Detail

InternalPerformanceMeter

public InternalPerformanceMeter(java.lang.String scenarioId)
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.

Specified by:
dispose in class PerformanceMeter

getSample

public abstract Sample getSample()

getScenarioName

public java.lang.String getScenarioName()
Answer the scenario ID.

Returns:
the scenario ID

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.

Specified by:
commit in class PerformanceMeter

tagAsSummary

public void tagAsSummary(boolean global,
                         java.lang.String shortName,
                         Dimension[] dims)

setComment

public void setComment(int commentType,
                       java.lang.String comment)