2018-03-27 16:42:52 +02:00
|
|
|
using BenchmarkDotNet.Diagnosers;
|
|
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
namespace Umbraco.Tests.Benchmarks.Config;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Configures the benchmark to run with less warmup and a shorter iteration time than the standard benchmark,
|
|
|
|
|
/// and include memory usage diagnosis.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class QuickRunWithMemoryDiagnoserConfigAttribute : QuickRunConfigAttribute
|
2018-03-27 16:42:52 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-06-21 08:09:38 +02:00
|
|
|
/// Initializes a new instance of the <see cref="QuickRunWithMemoryDiagnoserConfigAttribute" /> class.
|
2018-03-27 16:42:52 +02:00
|
|
|
/// </summary>
|
2022-06-21 08:09:38 +02:00
|
|
|
public QuickRunWithMemoryDiagnoserConfigAttribute() => Config.Add(MemoryDiagnoser.Default);
|
2020-10-07 14:38:15 +02:00
|
|
|
}
|