Add dotTrace snapshotting
This commit is contained in:
+3
-1
@@ -1,11 +1,13 @@
|
|||||||
using BenchmarkDotNet.Attributes;
|
using BenchmarkDotNet.Attributes;
|
||||||
|
using BenchmarkDotNet.Diagnostics.dotTrace;
|
||||||
using Craftimizer.Simulator;
|
using Craftimizer.Simulator;
|
||||||
using Craftimizer.Solver;
|
using Craftimizer.Solver;
|
||||||
|
|
||||||
namespace Craftimizer.Benchmark;
|
namespace Craftimizer.Benchmark;
|
||||||
|
|
||||||
[SimpleJob]
|
[SimpleJob(iterationCount: 10)]
|
||||||
[MinColumn, Q1Column, Q3Column, MaxColumn]
|
[MinColumn, Q1Column, Q3Column, MaxColumn]
|
||||||
|
[DotTraceDiagnoser]
|
||||||
public class Bench
|
public class Bench
|
||||||
{
|
{
|
||||||
private static SimulationInput[] Inputs { get; } = new SimulationInput[] {
|
private static SimulationInput[] Inputs { get; } = new SimulationInput[] {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<Configurations>Debug;Release</Configurations>
|
<Configurations>Debug;Release</Configurations>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -17,6 +18,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" />
|
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" />
|
||||||
|
<PackageReference Include="BenchmarkDotNet.Diagnostics.dotTrace" Version="0.13.10" />
|
||||||
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.10" />
|
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.10" />
|
||||||
<PackageReference Include="Meziantou.Analyzer" Version="2.0.106">
|
<PackageReference Include="Meziantou.Analyzer" Version="2.0.106">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
|||||||
Reference in New Issue
Block a user