Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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. }