-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallel notifications, correct ordering for switch statement cases (#…
…145)
- Loading branch information
1 parent
54f96f6
commit 1858bbc
Showing
163 changed files
with
9,010 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project> | ||
<Import Project="..\Directory.Build.props" /> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\common\*.cs"> | ||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'!='Debug'"> | ||
<TieredCompilation>true</TieredCompilation> | ||
<Optimize>true</Optimize> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefineConstants Condition="'$(ExtraDefineConstants)' != ''">$(DefineConstants);$(ExtraDefineConstants)</DefineConstants> | ||
</PropertyGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using BenchmarkDotNet.Columns; | ||
using BenchmarkDotNet.Reports; | ||
using BenchmarkDotNet.Running; | ||
|
||
namespace Mediator.Benchmarks; | ||
|
||
public sealed class CustomColumn : IColumn | ||
{ | ||
private readonly Func<Summary, BenchmarkCase, string> _getTag; | ||
|
||
public string Id { get; } | ||
public string ColumnName { get; } | ||
|
||
public CustomColumn(string columnName, Func<Summary, BenchmarkCase, string> getTag) | ||
{ | ||
_getTag = getTag; | ||
ColumnName = columnName; | ||
Id = nameof(CustomColumn) + "." + ColumnName; | ||
} | ||
|
||
public bool IsDefault(Summary summary, BenchmarkCase benchmarkCase) => false; | ||
|
||
public string GetValue(Summary summary, BenchmarkCase benchmarkCase) => _getTag(summary, benchmarkCase); | ||
|
||
public bool IsAvailable(Summary summary) => true; | ||
|
||
public bool AlwaysShow => true; | ||
public ColumnCategory Category => ColumnCategory.Params; | ||
public int PriorityInCategory => 0; | ||
public bool IsNumeric => false; | ||
public UnitType UnitType => UnitType.Dimensionless; | ||
public string Legend => $"Custom '{ColumnName}' tag column"; | ||
|
||
public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyle style) => | ||
GetValue(summary, benchmarkCase); | ||
|
||
public override string ToString() => ColumnName; | ||
} |
Oops, something went wrong.