[Profiler] Stop building the profiler outside of the repository folder#2651
Conversation
97b53ea to
55c825b
Compare
55c825b to
b8bbc47
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Benchmarks Report 🐌Benchmarks for #2651 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Faster 🎉 Same allocations ✔️
|
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑netcoreapp3.1 | 1.227 | 3,863.00 | 3,147.47 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 3.34μs | 9.4ns | 35.2ns | 0.228 | 0 | 0 | 1.45 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.86μs | 28.7ns | 285ns | 0.0222 | 0 | 0 | 1.53 KB |
| #2651 | EnrichedLog |
net472 | 3.4μs | 13ns | 50.2ns | 0.228 | 0 | 0 | 1.45 KB |
| #2651 | EnrichedLog |
netcoreapp3.1 | 3.16μs | 17.2ns | 97.5ns | 0.0211 | 0 | 0 | 1.53 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 302μs | 1.75μs | 16.1μs | 0.318 | 0.159 | 0 | 4.33 KB |
| master | EnrichedLog |
netcoreapp3.1 | 240μs | 1.3μs | 7.68μs | 0 | 0 | 0 | 4.21 KB |
| #2651 | EnrichedLog |
net472 | 290μs | 789ns | 3.06μs | 0.307 | 0.154 | 0 | 4.33 KB |
| #2651 | EnrichedLog |
netcoreapp3.1 | 234μs | 1.12μs | 5.58μs | 0 | 0 | 0 | 4.21 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 7.63μs | 31.5ns | 130ns | 0.506 | 0 | 0 | 3.23 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.71μs | 36.4ns | 206ns | 0.0469 | 0 | 0 | 3.6 KB |
| #2651 | EnrichedLog |
net472 | 7.74μs | 15.6ns | 58.4ns | 0.504 | 0 | 0 | 3.23 KB |
| #2651 | EnrichedLog |
netcoreapp3.1 | 6.51μs | 27.9ns | 108ns | 0.0508 | 0 | 0 | 3.6 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendReceive |
net472 | 2.46μs | 11ns | 42.4ns | 0.16 | 0.00119 | 0 | 1.01 KB |
| master | SendReceive |
netcoreapp3.1 | 2.02μs | 9.04ns | 35ns | 0.0139 | 0 | 0 | 1.01 KB |
| #2651 | SendReceive |
net472 | 2.37μs | 11.8ns | 49.9ns | 0.16 | 0 | 0 | 1.01 KB |
| #2651 | SendReceive |
netcoreapp3.1 | 1.99μs | 8.03ns | 30ns | 0.0143 | 0 | 0 | 1.01 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 6.02μs | 28.5ns | 106ns | 0.291 | 0 | 0 | 1.87 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.32μs | 22.8ns | 88.5ns | 0.0189 | 0 | 0 | 1.49 KB |
| #2651 | EnrichedLog |
net472 | 6.31μs | 28.2ns | 132ns | 0.291 | 0 | 0 | 1.87 KB |
| #2651 | EnrichedLog |
netcoreapp3.1 | 5.52μs | 28.4ns | 133ns | 0.0205 | 0 | 0 | 1.49 KB |
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net472 | 892ns | 4.14ns | 16.6ns | 0.0719 | 0 | 0 | 457 B |
| master | StartFinishSpan |
netcoreapp3.1 | 898ns | 2.59ns | 9.68ns | 0.00618 | 0 | 0 | 456 B |
| master | StartFinishScope |
net472 | 1.11μs | 4.58ns | 16.5ns | 0.0841 | 0 | 0 | 538 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.05μs | 2.02ns | 6.99ns | 0.00768 | 0 | 0 | 576 B |
| #2651 | StartFinishSpan |
net472 | 878ns | 2.77ns | 10.4ns | 0.0716 | 0 | 0 | 457 B |
| #2651 | StartFinishSpan |
netcoreapp3.1 | 874ns | 3ns | 11.2ns | 0.006 | 0 | 0 | 456 B |
| #2651 | StartFinishScope |
net472 | 1.09μs | 3.71ns | 12.8ns | 0.0845 | 0 | 0 | 538 B |
| #2651 | StartFinishScope |
netcoreapp3.1 | 1.05μs | 4.24ns | 16.4ns | 0.00775 | 0 | 0 | 576 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net472 | 1.28μs | 5.02ns | 27.5ns | 0.0845 | 0 | 0 | 538 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.16μs | 3.5ns | 13.1ns | 0.00789 | 0 | 0 | 576 B |
| #2651 | RunOnMethodBegin |
net472 | 1.33μs | 6.59ns | 34.3ns | 0.0842 | 0 | 0 | 538 B |
| #2651 | RunOnMethodBegin |
netcoreapp3.1 | 1.18μs | 6.17ns | 31.5ns | 0.00782 | 0 | 0 | 576 B |
zacharycmontoya
left a comment
There was a problem hiding this comment.
This is great 👍🏼
| # Visual Studio Version 16 | ||
| VisualStudioVersion = 16.0.30611.23 | ||
| # Visual Studio Version 17 | ||
| VisualStudioVersion = 17.1.32319.34 |
There was a problem hiding this comment.
Would it be possible to open it with VS 2019?
There was a problem hiding this comment.
You'll tell me 😛
| <!-- However, ForceBinaryOutputIntoEnlistment allows putting the binarlies INTO the repository root. --> | ||
| <BuildOutputRoot Condition=" '$(ForceBinaryOutputIntoEnlistment)' == 'True' ">$(EnlistmentRoot)\$(BuildOutputFolderName)</BuildOutputRoot> | ||
| <BuildOutputRoot Condition=" '$(ForceBinaryOutputIntoEnlistment)' != 'True' ">$(EnlistmentRoot)\..\$(BuildOutputFolderName)</BuildOutputRoot> | ||
| <BuildOutputRoot>$(EnlistmentRoot)\profiler\$(BuildOutputFolderName)</BuildOutputRoot> |
There was a problem hiding this comment.
In this .props file, all the comments related to ForceBinaryOutputIntoEnlistment should be deleted because it is no more used (true by default if I understand well + profiler_build instead of .._build)
e8733d8 to
a87ac7f
Compare
Code Coverage Report 📊✔️ Merging #2651 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
View the full reports for further details: |
_buildfolder from../(outside of the repository) toprofiler/../_build/ImportedPackagestopackages/