-
Notifications
You must be signed in to change notification settings - Fork 147
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
[Profiler] Add logs for the different profilers configuration #6739
Conversation
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (69ms) : 66, 72
. : milestone, 69,
master - mean (69ms) : 66, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (1,003ms) : 982, 1024
. : milestone, 1003,
master - mean (1,003ms) : 976, 1030
. : milestone, 1003,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (103ms) : 101, 105
. : milestone, 103,
master - mean (103ms) : 100, 105
. : milestone, 103,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (692ms) : 676, 709
. : milestone, 692,
master - mean (687ms) : 670, 703
. : milestone, 687,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (89ms) : 88, 91
. : milestone, 89,
master - mean (89ms) : 87, 91
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (643ms) : 629, 657
. : milestone, 643,
master - mean (645ms) : 628, 661
. : milestone, 645,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (192ms) : 187, 197
. : milestone, 192,
master - mean (190ms) : 185, 196
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (1,113ms) : 1089, 1138
. : milestone, 1113,
master - mean (1,106ms) : 1078, 1134
. : milestone, 1106,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (271ms) : 267, 275
. : milestone, 271,
master - mean (270ms) : 266, 274
. : milestone, 270,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (882ms) : 851, 914
. : milestone, 882,
master - mean (876ms) : 847, 905
. : milestone, 876,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6739) - mean (263ms) : 259, 267
. : milestone, 263,
master - mean (262ms) : 258, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (6739) - mean (860ms) : 827, 892
. : milestone, 860,
master - mean (855ms) : 826, 884
. : milestone, 855,
|
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 2 Passed Test Services
⌛ Performance Regressions vs Default Branch (1)
|
Benchmarks Report for tracer 🐌Benchmarks for #6739 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.149 | 696.24 | 799.84 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 | 1.189 | 467.85 | 393.42 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 468ns | 0.142ns | 0.513ns | 0.00813 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 587ns | 0.343ns | 1.33ns | 0.00764 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 635ns | 0.279ns | 1.08ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 481ns | 0.128ns | 0.496ns | 0.00979 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 695ns | 1.89ns | 7.3ns | 0.00938 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 811ns | 0.679ns | 2.63ns | 0.104 | 0 | 0 | 658 B |
#6739 | StartFinishSpan |
net6.0 | 393ns | 0.12ns | 0.447ns | 0.00807 | 0 | 0 | 576 B |
#6739 | StartFinishSpan |
netcoreapp3.1 | 584ns | 1.22ns | 4.71ns | 0.00783 | 0 | 0 | 576 B |
#6739 | StartFinishSpan |
net472 | 647ns | 0.21ns | 0.815ns | 0.0918 | 0 | 0 | 578 B |
#6739 | StartFinishScope |
net6.0 | 506ns | 0.176ns | 0.636ns | 0.00968 | 0 | 0 | 696 B |
#6739 | StartFinishScope |
netcoreapp3.1 | 800ns | 0.505ns | 1.96ns | 0.00925 | 0 | 0 | 696 B |
#6739 | StartFinishScope |
net472 | 869ns | 0.454ns | 1.64ns | 0.105 | 0 | 0 | 658 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 |
net6.0 | 613ns | 0.304ns | 1.18ns | 0.00994 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 928ns | 0.298ns | 1.11ns | 0.00909 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.1μs | 0.364ns | 1.41ns | 0.104 | 0 | 0 | 658 B |
#6739 | RunOnMethodBegin |
net6.0 | 667ns | 0.287ns | 1.11ns | 0.00967 | 0 | 0 | 696 B |
#6739 | RunOnMethodBegin |
netcoreapp3.1 | 909ns | 0.28ns | 1.01ns | 0.00909 | 0 | 0 | 696 B |
#6739 | RunOnMethodBegin |
net472 | 1.01μs | 0.397ns | 1.49ns | 0.104 | 0 | 0 | 658 B |
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.
LGTM
Summary of changes
Log the value of env vars used to configure the different profilers
Reason for change
This should help during investigations when samples are missing
Implementation details
Log specific env var retrieval; focusing on public ones (just ETW is not documented)
Test coverage
New tests are added
Other details