Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions NetCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ public ShortRunWithMemoryDiagnoserConfig()
.WithToolchain(CsProjCoreToolchain.NetCoreApp50)
.WithId(".Net 5.0 CLI")
#endif

.WithWarmupCount(5)
.WithIterationCount(5));
.WithIterationCount(5)
.WithArguments(new Argument[]
{
// See https://github.com/dotnet/roslyn/issues/42393
new MsBuildArgument("/p:DebugType=portable")
}));

this.AddColumnProvider(DefaultColumnProviders.Instance);
this.AddLogger(ConsoleLogger.Default);
Expand All @@ -52,8 +56,16 @@ public ShortRunWithMemoryDiagnoserConfig()
this.AddFilter(new NameFilter(name => !name.StartsWith("Magick")));
}

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
RuntimeInformation.OSArchitecture == Architecture.Arm64)
{
// FreeImage native binaries are not available for Windows ARM64
this.AddFilter(new NameFilter(name => !name.StartsWith("FreeImage")));
}

#if Windows_NT
if (this.IsElevated)
// See https://github.com/microsoft/perfview/issues/1264
if (this.IsElevated && RuntimeInformation.OSArchitecture != Architecture.Arm64)
{
this.AddDiagnoser(new NativeMemoryProfiler());
}
Expand Down Expand Up @@ -97,7 +109,11 @@ 1. Resize
{
lrs.MagickBenchmark();
}
lrs.FreeImageBenchmark();
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
RuntimeInformation.OSArchitecture != Architecture.Arm64)
{
lrs.FreeImageBenchmark();
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
lrs.MagicScalerBenchmark();
Expand Down Expand Up @@ -128,4 +144,4 @@ 1. Resize
}
}
}
}
}