Example #1
0
 public LatencyStepEventHandler(FunctionStep functionStep, Histogram histogram, long nanoTimeCost, double ticksToNanos, long iterations, ManualResetEvent mru)
 {
     _functionStep = functionStep;
     _histogram    = histogram;
     _nanoTimeCost = nanoTimeCost;
     _ticksToNanos = ticksToNanos;
     _iterations   = iterations;
     _mru          = mru;
 }
	    public FunctionQueueConsumer(FunctionStep functionStep,
	                                 BlockingCollection<long[]> stepOneQueue,
	                                 BlockingCollection<long> stepTwoQueue,
	                                 BlockingCollection<long> stepThreeQueue)
	    {
	        this.functionStep = functionStep;
	        this.stepOneQueue = stepOneQueue;
	        this.stepTwoQueue = stepTwoQueue;
	        this.stepThreeQueue = stepThreeQueue;
	    }
 public FunctionQueueConsumer(FunctionStep functionStep,
                              BlockingCollection <long[]> stepOneQueue,
                              BlockingCollection <long> stepTwoQueue,
                              BlockingCollection <long> stepThreeQueue)
 {
     this.functionStep   = functionStep;
     this.stepOneQueue   = stepOneQueue;
     this.stepTwoQueue   = stepTwoQueue;
     this.stepThreeQueue = stepThreeQueue;
 }
Example #4
0
        public LatencyStepHandler(FunctionStep functionStep, Histogram histogram, long stopwatchTimeCostNs, Stopwatch stopwatch)
        {
            if (!Stopwatch.IsHighResolution)
            {
                throw new InvalidOperationException("High resolution timer not available.  Results will not be accurate at all!");
            }

            this.functionStep        = functionStep;
            this.histogram           = histogram;
            this.stopwatchTimeCostNs = stopwatchTimeCostNs;
            this.stopwatch           = stopwatch;
        }
 public FunctionQueueProcessor(FunctionStep functionStep,
                               ConcurrentQueue <long[]> stepOneQueue,
                               ConcurrentQueue <long> stepTwoQueue,
                               ConcurrentQueue <long> stepThreeQueue,
                               long count)
 {
     _functionStep   = functionStep;
     _stepOneQueue   = stepOneQueue;
     _stepTwoQueue   = stepTwoQueue;
     _stepThreeQueue = stepThreeQueue;
     _count          = count;
 }
 public FunctionQueueEventProcessor(FunctionStep functionStep,
                          BlockingCollection<long[]> stepOneQueue,
                          BlockingCollection<long> stepTwoQueue,
                          BlockingCollection<long> stepThreeQueue,
                          long iterations)
 {
     _functionStep = functionStep;
     _stepOneQueue = stepOneQueue;
     _stepTwoQueue = stepTwoQueue;
     _stepThreeQueue = stepThreeQueue;
     _iterations = iterations;
 }
 public FunctionQueueProcessor(FunctionStep functionStep,
                            ConcurrentQueue<long[]> stepOneQueue,
                            ConcurrentQueue<long> stepTwoQueue,
                            ConcurrentQueue<long> stepThreeQueue,
                            long count)
 {
     this.functionStep = functionStep;
     this.stepOneQueue = stepOneQueue;
     this.stepTwoQueue = stepTwoQueue;
     this.stepThreeQueue = stepThreeQueue;
     this.count = count;
 }
 public FunctionQueueEventProcessor(FunctionStep functionStep,
                                    BlockingCollection <long[]> stepOneQueue,
                                    BlockingCollection <long> stepTwoQueue,
                                    BlockingCollection <long> stepThreeQueue,
                                    long iterations)
 {
     _functionStep   = functionStep;
     _stepOneQueue   = stepOneQueue;
     _stepTwoQueue   = stepTwoQueue;
     _stepThreeQueue = stepThreeQueue;
     _iterations     = iterations;
 }
 public LatencyStepQueueEventProcessor(FunctionStep functionStep,
                                       BlockingCollection <long> inputQueue,
                                       BlockingCollection <long> outputQueue,
                                       Histogram histogram, long nanoTimeCost, double ticksToNanos, long iterations)
 {
     _functionStep = functionStep;
     _inputQueue   = inputQueue;
     _outputQueue  = outputQueue;
     _histogram    = histogram;
     _nanoTimeCost = nanoTimeCost;
     _ticksToNanos = ticksToNanos;
     _iterations   = iterations;
 }
 public LatencyStepQueueEventProcessor(FunctionStep functionStep,
                             BlockingCollection<long> inputQueue,
                             BlockingCollection<long> outputQueue,
                             Histogram histogram, long nanoTimeCost, double ticksToNanos, long iterations)
 {
     _functionStep = functionStep;
     _inputQueue = inputQueue;
     _outputQueue = outputQueue;
     _histogram = histogram;
     _nanoTimeCost = nanoTimeCost;
     _ticksToNanos = ticksToNanos;
     _iterations = iterations;
 }
	    public LatencyStepQueueConsumer(FunctionStep functionStep,
	                                    BlockingCollection<long> inputQueue,
	                                    BlockingCollection<long> outputQueue,
	                                    Histogram histogram, 
	                                    long nanoTimeCost,
	                                   Stopwatch stopwatch)
	    {
	        this.functionStep = functionStep;
	        this.inputQueue = inputQueue;
	        this.outputQueue = outputQueue;
	        this.histogram = histogram;
	        this.nanoTimeCost = nanoTimeCost;
	        this.stopwatch = stopwatch;
	    }
 public LatencyStepQueueConsumer(FunctionStep functionStep,
                                 BlockingCollection <long> inputQueue,
                                 BlockingCollection <long> outputQueue,
                                 Histogram histogram,
                                 long nanoTimeCost,
                                 Stopwatch stopwatch)
 {
     this.functionStep = functionStep;
     this.inputQueue   = inputQueue;
     this.outputQueue  = outputQueue;
     this.histogram    = histogram;
     this.nanoTimeCost = nanoTimeCost;
     this.stopwatch    = stopwatch;
 }
 public FunctionEventHandler_V3(FunctionStep functionStep)
 {
     this.functionStep = functionStep;
 }
 public FunctionEventHandler(FunctionStep functionStep)
 {
     _functionStep = functionStep;
 }
Example #15
0
 public FunctionEventHandler(FunctionStep functionStep, long iterations, ManualResetEvent mru)
 {
     _functionStep = functionStep;
     _iterations   = iterations;
     _mru          = mru;
 }
 public LatencyStepEventHandler_V3(FunctionStep functionStep, Histogram histogram, long nanoTimeCost)
 {
     _functionStep = functionStep;
     _histogram    = histogram;
     _nanoTimeCost = nanoTimeCost;
 }
Example #17
0
 public FunctionHandler(FunctionStep functionStep)
 {
     this.functionStep = functionStep;
 }