protected void SetSamplingRate() { SamplingRate = PerfItRuntime.GetSamplingRate(CategoryName, SamplingRate); }
public void SettingSamplingRateInConfigForCategoryOverridesGlobal() { Assert.Equal(0.1, PerfItRuntime.GetSamplingRate("c", 2)); }
public void SettingSamplingRateInConfigForCategoryOverridesGlobalIfSpecifiedWithHash() { Assert.Equal(0.3, PerfItRuntime.GetSamplingRate("cc", 2)); }
public void SettingSamplingRateInConfigWorks() { Assert.Equal(0.2, PerfItRuntime.GetSamplingRate("any", 2)); }