diff --git a/LLama.Benchmark/LLama.Benchmark.csproj b/LLama.Benchmark/LLama.Benchmark.csproj
index 6e400e4ce..178284156 100644
--- a/LLama.Benchmark/LLama.Benchmark.csproj
+++ b/LLama.Benchmark/LLama.Benchmark.csproj
@@ -11,6 +11,7 @@
+
diff --git a/LLama.Benchmark/LLamaExecutorBenchmark/Prefill.cs b/LLama.Benchmark/LLamaExecutorBenchmark/Prefill.cs
index 6b9dcf5ef..4d9df0aa0 100644
--- a/LLama.Benchmark/LLamaExecutorBenchmark/Prefill.cs
+++ b/LLama.Benchmark/LLamaExecutorBenchmark/Prefill.cs
@@ -11,13 +11,14 @@
using BenchmarkDotNet.Jobs;
using LLama.Abstractions;
using LLama.Common;
-using BenchmarkDotNet.Diagnostics.Windows.Configs;
namespace LLama.Benchmark.LLamaExecutorBenchmark
{
+#if WINDOWS
+ [BenchmarkDotNet.Diagnostics.Windows.Configs.NativeMemoryProfiler]
+#endif
[BenchmarkCategory("Executor", "LLama")]
[SimpleJob(RunStrategy.ColdStart, runtimeMoniker: RuntimeMoniker.Net80)]
- [NativeMemoryProfiler]
[MemoryDiagnoser]
[MinIterationCount(1)]
[MaxIterationCount(16)]