-
-
Notifications
You must be signed in to change notification settings - Fork 230
chore: move Benchmarks for Sentry.Extensions.Logging into separate project #5146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7ca0dda
8afff2f
d250903
8347ae9
2d04830
7671740
1f35f7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ | |
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>$(PreviousTfm)</TargetFramework> | ||
| <IsPackable>false</IsPackable> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: removing, as already declared in "parent" |
||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
@@ -14,7 +13,6 @@ | |
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\src\Sentry\Sentry.csproj" /> | ||
| <ProjectReference Include="..\..\src\Sentry.Extensions.Logging\Sentry.Extensions.Logging.csproj" /> | ||
| <ProjectReference Include="..\..\src\Sentry.Profiling\Sentry.Profiling.csproj" /> | ||
| <ProjectReference Include="..\..\test\Sentry.Testing\Sentry.Testing.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| using BenchmarkDotNet.Configs; | ||
| using BenchmarkDotNet.Diagnosers; | ||
| using BenchmarkDotNet.Exporters; | ||
| using BenchmarkDotNet.Running; | ||
|
|
||
| namespace Sentry.Extensions.Logging.Benchmarks; | ||
|
|
||
| internal class Program | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought: code duplication This file pretty much is a duplicate from the existing Should we have more Benchmark-Projects in the future, we could have a single |
||
| { | ||
| private static void Main(string[] args) | ||
| => new BenchmarkSwitcher(typeof(Program).Assembly).Run(args, new Config()); | ||
|
|
||
| private class Config : ManualConfig | ||
| { | ||
| public Config() | ||
| { | ||
| AddDiagnoser(MemoryDiagnoser.Default); | ||
| AddExporter(MarkdownExporter.GitHub); | ||
| AddLogger(DefaultConfig.Instance.GetLoggers().ToArray()); | ||
| AddColumnProvider(DefaultConfig.Instance.GetColumnProviders().ToArray()); | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>$(PreviousTfm)</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="BenchmarkDotNet" Version="0.13.12" /> | ||
| <PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.12" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\src\Sentry\Sentry.csproj" /> | ||
| <ProjectReference Include="..\..\src\Sentry.Extensions.Logging\Sentry.Extensions.Logging.csproj" /> | ||
| <ProjectReference Include="..\..\test\Sentry.Testing\Sentry.Testing.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: remove redundant comment
<UseSentryCLI>false</UseSentryCLI>was removed via 91b22a9#diff-f431a929d80ac5e052346ee209d3600c6f7385325f3811b74dbba9bf66c21054L7, but the comment remained.