-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Dynamic Instrumentation] DEBUG-2256 Do not create ProbeProcessor when LiveDebugger isn't fully initialized #6092
base: master
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ❌ 1 Failed (1 Known Flaky), 459085 Passed, 3572 Skipped, 31h 55m 28.48s Total Time ❌ Failed Tests (1)
|
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
e623163
to
09789c3
Compare
09789c3
to
684cda6
Compare
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 (6092) - mean (72ms) : 62, 82
. : milestone, 72,
master - mean (72ms) : 63, 80
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (1,105ms) : 1087, 1124
. : milestone, 1105,
master - mean (1,112ms) : 1089, 1134
. : milestone, 1112,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (109ms) : 106, 111
. : milestone, 109,
master - mean (108ms) : 107, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (769ms) : 753, 784
. : milestone, 769,
master - mean (769ms) : 752, 786
. : milestone, 769,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (92ms) : 88, 96
. : milestone, 92,
master - mean (92ms) : 90, 95
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (724ms) : 709, 739
. : milestone, 724,
master - mean (727ms) : 711, 743
. : milestone, 727,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (191ms) : 186, 197
. : milestone, 191,
master - mean (191ms) : 187, 194
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (1,213ms) : 1184, 1242
. : milestone, 1213,
master - mean (1,212ms) : 1190, 1233
. : milestone, 1212,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (276ms) : 272, 281
. : milestone, 276,
master - mean (276ms) : 271, 282
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (945ms) : 929, 961
. : milestone, 945,
master - mean (947ms) : 928, 967
. : milestone, 947,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (266ms) : 263, 270
. : milestone, 266,
master - mean (265ms) : 260, 271
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (932ms) : 913, 951
. : milestone, 932,
master - mean (927ms) : 909, 946
. : milestone, 927,
|
Throughput/Crank Report ⚡Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6092) (10.983M) : 0, 10982559
master (10.944M) : 0, 10944015
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6092) (7.067M) : 0, 7067272
master (7.057M) : 0, 7056507
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.397M) : 0, 7396993
section Manual
master (10.989M) : 0, 10989408
section Manual + Automatic
This PR (6092) (6.609M) : 0, 6609431
master (6.497M) : 0, 6497193
section DD_TRACE_ENABLED=0
master (10.120M) : 0, 10120165
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6092) (9.509M) : 0, 9508770
master (9.525M) : 0, 9525130
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6092) (6.396M) : 0, 6395688
master (6.342M) : 0, 6341726
section Trace stats
master (6.735M) : 0, 6734878
section Manual
master (9.691M) : 0, 9691279
section Manual + Automatic
This PR (6092) (5.795M) : 0, 5795445
master (6.026M) : 0, 6026482
section DD_TRACE_ENABLED=0
master (8.854M) : 0, 8853804
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6092) (9.824M) : 0, 9824188
master (9.757M) : 0, 9756807
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6092) (6.381M) : 0, 6381292
master (6.431M) : 0, 6430770
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (6.942M) : 0, 6942250
section Manual
master (9.619M) : 0, 9618588
section Manual + Automatic
This PR (6092) (5.959M) : 0, 5958568
master (5.770M) : 0, 5770008
section DD_TRACE_ENABLED=0
master (8.744M) : 0, 8743620
|
Benchmarks Report for tracer 🐌Benchmarks for #6092 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.126 | 628.52 | 558.36 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 410ns | 1.06ns | 4.1ns | 0.00816 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 629ns | 0.53ns | 2.05ns | 0.00762 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 731ns | 1.77ns | 6.85ns | 0.0915 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 489ns | 0.578ns | 2.24ns | 0.00981 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 684ns | 2.39ns | 9.27ns | 0.00943 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 896ns | 1.22ns | 4.72ns | 0.104 | 0 | 0 | 658 B |
#6092 | StartFinishSpan |
net6.0 | 416ns | 0.256ns | 0.993ns | 0.00808 | 0 | 0 | 576 B |
#6092 | StartFinishSpan |
netcoreapp3.1 | 557ns | 0.975ns | 3.77ns | 0.00781 | 0 | 0 | 576 B |
#6092 | StartFinishSpan |
net472 | 683ns | 0.313ns | 1.17ns | 0.0917 | 0 | 0 | 578 B |
#6092 | StartFinishScope |
net6.0 | 483ns | 0.422ns | 1.64ns | 0.00987 | 0 | 0 | 696 B |
#6092 | StartFinishScope |
netcoreapp3.1 | 750ns | 0.518ns | 1.79ns | 0.00937 | 0 | 0 | 696 B |
#6092 | StartFinishScope |
net472 | 919ns | 1.06ns | 4.1ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6092
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.119
603.70
675.44
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.119 | 603.70 | 675.44 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 603ns | 0.4ns | 1.55ns | 0.00961 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 903ns | 0.558ns | 2.16ns | 0.00904 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 0.744ns | 2.78ns | 0.104 | 0 | 0 | 658 B |
#6092 | RunOnMethodBegin |
net6.0 | 676ns | 0.41ns | 1.59ns | 0.00975 | 0 | 0 | 696 B |
#6092 | RunOnMethodBegin |
netcoreapp3.1 | 994ns | 0.791ns | 3.06ns | 0.00943 | 0 | 0 | 696 B |
#6092 | RunOnMethodBegin |
net472 | 1.13μs | 0.902ns | 3.49ns | 0.105 | 0 | 0 | 658 B |
Summary of changes
ProbeProcessor can be inialized from various places and it do a low of work. If the LiveDebugger isn't fully initialized, it useless to create it. This PR verify this.