protected void CreateCriteriaContext()
        {
            var maxTopStackOccurrence = new UintValue(uint.MinValue);
            var maxDuration           = new DoubleValue(uint.MinValue);

            foreach (Method method in _methodDictionary.Values)
            {
                maxTopStackOccurrence =
                    (UintValue)Max(method.GetValueFor(SamplingCriteriaContext.TopStackOccurrenceCriterion), maxTopStackOccurrence);
                maxDuration =
                    (DoubleValue)
                    Max(method.GetValueFor(SamplingCriteriaContext.DurationCriterion), maxDuration);
            }

            CriteriaContext = new SamplingCriteriaContext(
                maxTopStackOccurrence,
                maxDuration);
        }
 public void SetUp()
 {
     _maxTopStackOccurrence   = new UintValue(50);
     _maxDuration             = new DoubleValue(100);
     _samplingCriteriaContext = new SamplingCriteriaContext(_maxTopStackOccurrence, _maxDuration);
 }