Add benchmarking and trace build config

This commit is contained in:
Asriel Camora
2023-11-04 13:49:47 -07:00
parent d08fedb247
commit 4f953f2fa3
12 changed files with 158 additions and 48 deletions
-2
View File
@@ -5,8 +5,6 @@ using System.Runtime.CompilerServices;
namespace Craftimizer.Solver;
// #define IS_DETERMINISTIC
public struct ActionSet
{
private uint bits;
+7
View File
@@ -5,6 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Platforms>x64</Platforms>
<Configurations>Debug;Release;Trace</Configurations>
</PropertyGroup>
<ItemGroup>
@@ -18,4 +20,9 @@
<ProjectReference Include="..\Simulator\Craftimizer.Simulator.csproj" />
</ItemGroup>
<PropertyGroup>
<DefineConstants Condition="'$(IS_BENCH)'=='1'">$(DefineConstants);IS_DETERMINISTIC</DefineConstants>
<DefineConstants Condition="'$(Configuration)' == 'Trace'">$(DefineConstants);IS_DETERMINISTIC;IS_TRACE</DefineConstants>
</PropertyGroup>
</Project>