您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AllowNonOptimized.cs 909 B

1234567891011121314151617181920212223
  1. using System.Linq;
  2. using BenchmarkDotNet.Configs;
  3. using BenchmarkDotNet.Jobs;
  4. using BenchmarkDotNet.Validators;
  5. namespace MQTTnet.Benchmarks
  6. {
  7. /// <summary>
  8. /// this options may be used to run benchmarks in debugmode and attach a performance profiler
  9. /// https://benchmarkdotnet.org/Configs/Configs.htm
  10. /// </summary>
  11. public class AllowNonOptimized : ManualConfig
  12. {
  13. public AllowNonOptimized()
  14. {
  15. Add(JitOptimizationsValidator.DontFailOnError); // ALLOW NON-OPTIMIZED DLLS
  16. Add(DefaultConfig.Instance.GetLoggers().ToArray()); // manual config has no loggers by default
  17. Add(DefaultConfig.Instance.GetExporters().ToArray()); // manual config has no exporters by default
  18. Add(DefaultConfig.Instance.GetColumnProviders().ToArray()); // manual config has no columns by default
  19. Add(Job.InProcess);
  20. }
  21. }
  22. }