Class CustomPerformanceMeter


  • public class CustomPerformanceMeter
    extends org.eclipse.test.internal.performance.OSPerformanceMeter
    Special OSPerformanceMeter. This implementation doesn't support methods start() and stop(). But has some mechanism which supported performance measuring for methods executing in different threads
    • Field Summary

      • Fields inherited from class org.eclipse.test.internal.performance.InternalPerformanceMeter

        AFTER, AVERAGE, BEFORE, SIZE, STDEV, VERBOSE_PERFORMANCE_METER_PROPERTY
    • Constructor Detail

      • CustomPerformanceMeter

        public CustomPerformanceMeter​(String scenarioId)
        Constructor
        Parameters:
        scenarioId - scenario id, can't be null
    • Method Detail

      • getSample

        public org.eclipse.test.internal.performance.data.Sample getSample()
        Gets actual Sample of performance. This sample aggregates all measuring which was started by method startNewMeter() return Sample of performance.
        Overrides:
        getSample in class org.eclipse.test.internal.performance.OSPerformanceMeter
      • startNewMeter

        public long startNewMeter()
        Called immediately before the operation to measure.
        Returns:
        special id of this measuring. You must use this id for stop measure see stopMeter(long)
      • start

        public void start()
        Don't supported see startNewMeter()
        Overrides:
        start in class org.eclipse.test.internal.performance.OSPerformanceMeter
      • stop

        public void stop()
        Don't supported see stopMeter(long)
        Overrides:
        stop in class org.eclipse.test.internal.performance.OSPerformanceMeter
      • stopMeter

        public void stopMeter​(long id)
        Called immediately after the operation to measure.
        Parameters:
        id - special id of measuring which you would to stop. This id is returned be method startNewMeter()