-
Notifications
You must be signed in to change notification settings - Fork 142
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), 466078 Passed, 3593 Skipped, 32h 29m 38.21s 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
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 (71ms) : 64, 79
. : milestone, 71,
master - mean (72ms) : 64, 79
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (1,106ms) : 1090, 1123
. : milestone, 1106,
master - mean (1,113ms) : 1088, 1138
. : milestone, 1113,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (109ms) : 107, 110
. : milestone, 109,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (769ms) : 752, 786
. : milestone, 769,
master - mean (766ms) : 751, 781
. : milestone, 766,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (94ms) : 83, 105
. : milestone, 94,
master - mean (92ms) : 90, 94
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (726ms) : 708, 745
. : milestone, 726,
master - mean (726ms) : 710, 743
. : milestone, 726,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (192ms) : 186, 198
. : milestone, 192,
master - mean (191ms) : 187, 195
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (1,213ms) : 1190, 1237
. : milestone, 1213,
master - mean (1,211ms) : 1180, 1242
. : milestone, 1211,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (278ms) : 275, 282
. : milestone, 278,
master - mean (276ms) : 272, 281
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (947ms) : 930, 965
. : milestone, 947,
master - mean (947ms) : 924, 969
. : milestone, 947,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6092) - mean (267ms) : 263, 270
. : milestone, 267,
master - mean (267ms) : 262, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6092) - mean (933ms) : 913, 953
. : milestone, 933,
master - mean (928ms) : 914, 942
. : milestone, 928,
|
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) (11.026M) : 0, 11025931
master (11.152M) : 0, 11152338
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6092) (7.217M) : 0, 7217426
master (7.244M) : 0, 7243660
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.518M) : 0, 7517768
section Manual
master (11.069M) : 0, 11069227
section Manual + Automatic
This PR (6092) (6.627M) : 0, 6626907
master (6.654M) : 0, 6654084
section DD_TRACE_ENABLED=0
master (10.167M) : 0, 10167208
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6092) (9.605M) : 0, 9604909
master (9.526M) : 0, 9526248
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6092) (6.255M) : 0, 6254994
master (6.498M) : 0, 6497687
section Trace stats
master (6.721M) : 0, 6720904
section Manual
master (9.319M) : 0, 9318756
section Manual + Automatic
This PR (6092) (5.925M) : 0, 5925220
master (5.950M) : 0, 5950309
section DD_TRACE_ENABLED=0
master (8.828M) : 0, 8827707
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6092) (9.834M) : 0, 9834287
master (9.687M) : 0, 9686574
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6092) (6.435M) : 0, 6435443
master (6.271M) : 0, 6271452
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (6.878M) : 0, 6878067
section Manual
master (9.591M) : 0, 9591403
section Manual + Automatic
This PR (6092) (5.927M) : 0, 5927413
master (5.878M) : 0, 5877708
section DD_TRACE_ENABLED=0
master (8.841M) : 0, 8841473
|
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 - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync‑net6.0 | 1.123 | 1,262.02 | 1,417.63 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | CallElasticsearch |
net6.0 | 1.17μs | 0.922ns | 3.45ns | 0.0139 | 0 | 0 | 976 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.54μs | 0.231ns | 0.8ns | 0.0131 | 0 | 0 | 976 B |
master | CallElasticsearch |
net472 | 2.55μs | 1.88ns | 7.29ns | 0.158 | 0 | 0 | 995 B |
master | CallElasticsearchAsync |
net6.0 | 1.26μs | 0.907ns | 3.39ns | 0.0132 | 0 | 0 | 952 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.67μs | 1.11ns | 4.31ns | 0.0134 | 0 | 0 | 1.02 KB |
master | CallElasticsearchAsync |
net472 | 2.55μs | 1.27ns | 4.74ns | 0.167 | 0 | 0 | 1.05 KB |
#6092 | CallElasticsearch |
net6.0 | 1.13μs | 0.38ns | 1.31ns | 0.0136 | 0 | 0 | 976 B |
#6092 | CallElasticsearch |
netcoreapp3.1 | 1.51μs | 0.693ns | 2.59ns | 0.0135 | 0 | 0 | 976 B |
#6092 | CallElasticsearch |
net472 | 2.46μs | 2.55ns | 9.88ns | 0.157 | 0 | 0 | 995 B |
#6092 | CallElasticsearchAsync |
net6.0 | 1.42μs | 0.503ns | 1.95ns | 0.0128 | 0 | 0 | 952 B |
#6092 | CallElasticsearchAsync |
netcoreapp3.1 | 1.71μs | 0.95ns | 3.68ns | 0.0137 | 0 | 0 | 1.02 KB |
#6092 | CallElasticsearchAsync |
net472 | 2.55μs | 0.952ns | 3.69ns | 0.166 | 0 | 0 | 1.05 KB |
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.21μs | 0.954ns | 3.57ns | 0.0133 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.6μs | 0.824ns | 3.19ns | 0.0127 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.83μs | 0.498ns | 1.86ns | 0.145 | 0 | 0 | 915 B |
#6092 | ExecuteAsync |
net6.0 | 1.24μs | 0.476ns | 1.78ns | 0.013 | 0 | 0 | 952 B |
#6092 | ExecuteAsync |
netcoreapp3.1 | 1.71μs | 0.558ns | 2.09ns | 0.0129 | 0 | 0 | 952 B |
#6092 | ExecuteAsync |
net472 | 1.82μs | 0.415ns | 1.61ns | 0.144 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendAsync |
net6.0 | 4.28μs | 1.15ns | 4.31ns | 0.0321 | 0 | 0 | 2.31 KB |
master | SendAsync |
netcoreapp3.1 | 5.32μs | 6.54ns | 23.6ns | 0.0369 | 0 | 0 | 2.85 KB |
master | SendAsync |
net472 | 7.19μs | 2.12ns | 7.93ns | 0.494 | 0 | 0 | 3.12 KB |
#6092 | SendAsync |
net6.0 | 4.42μs | 2.04ns | 7.64ns | 0.0309 | 0 | 0 | 2.31 KB |
#6092 | SendAsync |
netcoreapp3.1 | 5.31μs | 1.66ns | 6.42ns | 0.0373 | 0 | 0 | 2.85 KB |
#6092 | SendAsync |
net472 | 7.46μs | 2.26ns | 8.75ns | 0.496 | 0 | 0 | 3.12 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.51μs | 1.01ns | 3.64ns | 0.0226 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.22μs | 0.901ns | 3.37ns | 0.0221 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.64μs | 1.22ns | 4.39ns | 0.249 | 0 | 0 | 1.57 KB |
#6092 | EnrichedLog |
net6.0 | 1.61μs | 1.37ns | 5.12ns | 0.0226 | 0 | 0 | 1.64 KB |
#6092 | EnrichedLog |
netcoreapp3.1 | 2.22μs | 0.955ns | 3.7ns | 0.0222 | 0 | 0 | 1.64 KB |
#6092 | EnrichedLog |
net472 | 2.62μs | 1.69ns | 6.32ns | 0.249 | 0 | 0 | 1.57 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 |
net6.0 | 119μs | 202ns | 782ns | 0.0601 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 124μs | 117ns | 455ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 152μs | 148ns | 573ns | 0.683 | 0.228 | 0 | 4.46 KB |
#6092 | EnrichedLog |
net6.0 | 121μs | 144ns | 537ns | 0.06 | 0 | 0 | 4.28 KB |
#6092 | EnrichedLog |
netcoreapp3.1 | 124μs | 123ns | 475ns | 0 | 0 | 0 | 4.28 KB |
#6092 | EnrichedLog |
net472 | 150μs | 176ns | 680ns | 0.671 | 0.224 | 0 | 4.46 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 |
net6.0 | 3.09μs | 1.44ns | 5.2ns | 0.031 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.16μs | 1.53ns | 5.5ns | 0.0292 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.94μs | 2.13ns | 8.25ns | 0.321 | 0 | 0 | 2.02 KB |
#6092 | EnrichedLog |
net6.0 | 2.99μs | 8.88ns | 34.4ns | 0.0314 | 0 | 0 | 2.2 KB |
#6092 | EnrichedLog |
netcoreapp3.1 | 4.19μs | 2.63ns | 10.2ns | 0.0293 | 0 | 0 | 2.2 KB |
#6092 | EnrichedLog |
net472 | 4.75μs | 0.988ns | 3.7ns | 0.319 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6092
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0
1.122
1,306.04
1,465.58
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0 | 1.122 | 1,306.04 | 1,465.58 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.31μs | 1.05ns | 4.06ns | 0.0163 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.75μs | 0.515ns | 1.93ns | 0.0151 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.06μs | 2.21ns | 8.55ns | 0.183 | 0 | 0 | 1.16 KB |
#6092 | SendReceive |
net6.0 | 1.47μs | 0.68ns | 2.63ns | 0.0161 | 0 | 0 | 1.14 KB |
#6092 | SendReceive |
netcoreapp3.1 | 1.82μs | 0.336ns | 1.16ns | 0.0155 | 0 | 0 | 1.14 KB |
#6092 | SendReceive |
net472 | 2.15μs | 0.592ns | 2.21ns | 0.183 | 0 | 0 | 1.16 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 |
net6.0 | 2.63μs | 0.921ns | 3.44ns | 0.0223 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.96μs | 1.97ns | 7.64ns | 0.0217 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.36μs | 1.35ns | 5.04ns | 0.323 | 0 | 0 | 2.04 KB |
#6092 | EnrichedLog |
net6.0 | 2.72μs | 0.61ns | 2.36ns | 0.0218 | 0 | 0 | 1.6 KB |
#6092 | EnrichedLog |
netcoreapp3.1 | 3.88μs | 1.19ns | 4.46ns | 0.0213 | 0 | 0 | 1.65 KB |
#6092 | EnrichedLog |
net472 | 4.52μs | 6.29ns | 23.5ns | 0.323 | 0 | 0 | 2.04 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 |
net6.0 | 400ns | 0.272ns | 1.05ns | 0.00803 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 624ns | 0.728ns | 2.63ns | 0.00768 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 657ns | 0.713ns | 2.76ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 496ns | 0.235ns | 0.911ns | 0.00986 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 648ns | 0.543ns | 2.1ns | 0.00943 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 907ns | 1.01ns | 3.92ns | 0.104 | 0 | 0 | 658 B |
#6092 | StartFinishSpan |
net6.0 | 400ns | 0.391ns | 1.51ns | 0.00803 | 0 | 0 | 576 B |
#6092 | StartFinishSpan |
netcoreapp3.1 | 560ns | 0.748ns | 2.9ns | 0.00778 | 0 | 0 | 576 B |
#6092 | StartFinishSpan |
net472 | 670ns | 0.58ns | 2.25ns | 0.0917 | 0 | 0 | 578 B |
#6092 | StartFinishScope |
net6.0 | 545ns | 0.69ns | 2.67ns | 0.00986 | 0 | 0 | 696 B |
#6092 | StartFinishScope |
netcoreapp3.1 | 712ns | 0.777ns | 3.01ns | 0.00938 | 0 | 0 | 696 B |
#6092 | StartFinishScope |
net472 | 910ns | 0.914ns | 3.54ns | 0.104 | 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 | 709ns | 0.474ns | 1.84ns | 0.0099 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 918ns | 0.85ns | 3.29ns | 0.00922 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.2μs | 0.745ns | 2.79ns | 0.104 | 0 | 0 | 658 B |
#6092 | RunOnMethodBegin |
net6.0 | 684ns | 0.559ns | 2.16ns | 0.00959 | 0 | 0 | 696 B |
#6092 | RunOnMethodBegin |
netcoreapp3.1 | 942ns | 0.634ns | 2.46ns | 0.00941 | 0 | 0 | 696 B |
#6092 | RunOnMethodBegin |
net472 | 1.19μs | 1.14ns | 4.42ns | 0.104 | 0 | 0 | 658 B |
a6036d8
to
5f0d297
Compare
5f0d297
to
420a812
Compare
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.