[Profiler] Enable CodeHotspot feature by default when the profiler is enabled#2660
Merged
Merged
Conversation
gleocadie
force-pushed
the
gleocadie/turn-codehotspot-on-by-default
branch
from
April 9, 2022 12:28
ad932d7 to
8fd44a5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
gleocadie
force-pushed
the
gleocadie/turn-codehotspot-on-by-default
branch
from
April 11, 2022 06:23
8fd44a5 to
c7c2105
Compare
gleocadie
marked this pull request as ready for review
April 11, 2022 06:25
Member
Code Coverage Report 📊✔️ Merging #2660 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
The following classes were added in #2660:
View the full reports for further details: |
luhenry
approved these changes
Apr 11, 2022
pierotibou
approved these changes
Apr 11, 2022
Member
Benchmarks Report 🐌Benchmarks for #2660 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Slower
|
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.RedisBenchmark.SendReceive‑net472 | 1.192 | 2,293.59 | 2,734.41 | bimodal |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendReceive |
net472 | 2.3μs | 8.37ns | 32.4ns | 0.16 | 0 | 0 | 1.01 KB |
| master | SendReceive |
netcoreapp3.1 | 2.01μs | 5.67ns | 21.2ns | 0.0141 | 0 | 0 | 1.01 KB |
| #2660 | SendReceive |
net472 | 2.73μs | 22.3ns | 223ns | 0.158 | 0 | 0 | 1.01 KB |
| #2660 | SendReceive |
netcoreapp3.1 | 2.15μs | 9.28ns | 34.7ns | 0.014 | 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 | 5.88μs | 22.5ns | 84.1ns | 0.292 | 0 | 0 | 1.87 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.01μs | 27.2ns | 178ns | 0.0195 | 0 | 0 | 1.49 KB |
| #2660 | EnrichedLog |
net472 | 6.04μs | 34.4ns | 245ns | 0.291 | 0 | 0 | 1.87 KB |
| #2660 | EnrichedLog |
netcoreapp3.1 | 5.47μs | 29.2ns | 196ns | 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 | 941ns | 4.71ns | 22.1ns | 0.0719 | 0 | 0 | 457 B |
| master | StartFinishSpan |
netcoreapp3.1 | 852ns | 2.78ns | 10.4ns | 0.00612 | 0 | 0 | 456 B |
| master | StartFinishScope |
net472 | 1.15μs | 6.56ns | 46.4ns | 0.0842 | 0 | 0 | 538 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.02μs | 4.92ns | 20.3ns | 0.00806 | 0 | 0 | 576 B |
| #2660 | StartFinishSpan |
net472 | 884ns | 4.1ns | 15.4ns | 0.0719 | 0 | 0 | 457 B |
| #2660 | StartFinishSpan |
netcoreapp3.1 | 892ns | 5.05ns | 35ns | 0.00601 | 0 | 0 | 456 B |
| #2660 | StartFinishScope |
net472 | 1.12μs | 5.22ns | 20.2ns | 0.0846 | 0 | 0 | 538 B |
| #2660 | StartFinishScope |
netcoreapp3.1 | 1.03μs | 4.9ns | 20.2ns | 0.00771 | 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.27μs | 6.47ns | 30.4ns | 0.0842 | 0 | 0 | 538 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.26μs | 6.4ns | 29.3ns | 0.00794 | 0 | 0 | 576 B |
| #2660 | RunOnMethodBegin |
net472 | 1.3μs | 7ns | 39.6ns | 0.0839 | 0 | 0 | 538 B |
| #2660 | RunOnMethodBegin |
netcoreapp3.1 | 1.13μs | 4.26ns | 15.4ns | 0.00781 | 0 | 0 | 576 B |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Reason for change
Code Hotspot feature is activated by default in the other profilers.
Implementation details
Just change the default value.
Test coverage
Other details