Files
Umbraco-CMS/tests/Umbraco.Tests.Benchmarks/Config/QuickRunWithMemoryDiagnoserConfigAttribute.cs

16 lines
597 B
C#
Raw Permalink Normal View History

2018-03-27 16:42:52 +02:00
using BenchmarkDotNet.Diagnosers;
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>
/// Initializes a new instance of the <see cref="QuickRunWithMemoryDiagnoserConfigAttribute" /> class.
2018-03-27 16:42:52 +02:00
/// </summary>
public QuickRunWithMemoryDiagnoserConfigAttribute() => Config.Add(MemoryDiagnoser.Default);
}