Skip to content

Commit

Permalink
Debug GenBenchmarkPage
Browse files Browse the repository at this point in the history
  • Loading branch information
fryderykhuang committed Jan 19, 2024
1 parent 9ac1813 commit 5d16f32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/GenBenchmarkPage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Push-Location $SolutionDir
if (!(Test-Path -PathType Container $BenchmarkResultPageDir)) { New-Item -ItemType Directory -Path $BenchmarkResultPageDir }
Copy-Item $BenchmarkArtifactsDir\results\*.html $BenchmarkResultPageDir
Get-ChildItem -Recurse -Force .
dotnet run --project .\BenchmarkResultPageGenerator\BenchmarkResultPageGenerator.csproj $BenchmarkArtifactsDir\results $BenchmarkResultPageDir\index.html
if (!$?) { throw }
Pop-Location
2 changes: 1 addition & 1 deletion src/NullGC.DragRace/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal class CicdConfig : ConfigBase
{
public CicdConfig()
{
AddJob(Job.ShortRun)//.WithArguments(new[] {new MsBuildArgument("/p:Platform=x64")}))
AddJob(Job.MediumRun)//.WithArguments(new[] {new MsBuildArgument("/p:Platform=x64")}))
.AddDiagnoser(new MemoryDiagnoser(new MemoryDiagnoserConfig(true)))
.AddExporter(new JsonExporter()).AddExporter(new HtmlExporter())
.AddColumnProvider(DefaultColumnProviders.Instance)
Expand Down
2 changes: 2 additions & 0 deletions src/NullGC.DragRace/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
using NullGC.DragRace;
using NullGC.DragRace.Benchmarks;
#if CICD
Console.Error.WriteLine("Running on CICD profile.");
BenchmarkRunner.Run(
Assembly.GetExecutingAssembly().GetExportedTypes()
.Where(t => t.CustomAttributes.Any(a => a.AttributeType == typeof(PickedForCicd))).ToArray(), new CicdConfig());
return;
#else

var types = args.Select(Type.GetType).Where(x => x is not null).ToArray();
Expand Down

0 comments on commit 5d16f32

Please sign in to comment.