-
Notifications
You must be signed in to change notification settings - Fork 137
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-2913 Fix runtime reflection exceptions when getting field value #6078
base: master
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 370898 Passed, 2730 Skipped, 26h 7m 29.09s Total Time |
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 (6078) - mean (71ms) : 68, 75
. : milestone, 71,
master - mean (71ms) : 68, 74
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (1,109ms) : 1087, 1131
. : milestone, 1109,
master - mean (1,105ms) : 1085, 1126
. : milestone, 1105,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6078) - mean (111ms) : 107, 115
. : milestone, 111,
master - mean (110ms) : 107, 113
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (778ms) : 763, 792
. : milestone, 778,
master - mean (775ms) : 754, 796
. : milestone, 775,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6078) - mean (94ms) : 90, 97
. : milestone, 94,
master - mean (93ms) : 89, 98
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (737ms) : 718, 756
. : milestone, 737,
master - mean (731ms) : 714, 749
. : milestone, 731,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6078) - mean (191ms) : 188, 194
. : milestone, 191,
master - mean (193ms) : 187, 199
. : milestone, 193,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (1,202ms) : 1179, 1225
. : milestone, 1202,
master - mean (1,203ms) : 1179, 1227
. : milestone, 1203,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6078) - mean (277ms) : 272, 282
. : milestone, 277,
master - mean (278ms) : 271, 285
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (946ms) : 928, 964
. : milestone, 946,
master - mean (946ms) : 926, 966
. : milestone, 946,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6078) - mean (267ms) : 263, 271
. : milestone, 267,
master - mean (266ms) : 260, 272
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (6078) - mean (933ms) : 914, 951
. : milestone, 933,
master - mean (928ms) : 905, 951
. : milestone, 928,
|
Benchmarks Report for tracer 🐌Benchmarks for #6078 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.StartFinishSpan‑netcoreapp3.1 | 1.157 | 552.75 | 639.73 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.317 | 628.27 | 477.15 | |
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.306 | 741.28 | 567.78 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 398ns | 0.208ns | 0.807ns | 0.00802 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 552ns | 0.47ns | 1.82ns | 0.00774 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 741ns | 0.825ns | 3.19ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 629ns | 1.26ns | 4.9ns | 0.00983 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 717ns | 0.555ns | 2.15ns | 0.00936 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 855ns | 0.634ns | 2.46ns | 0.105 | 0 | 0 | 658 B |
#6078 | StartFinishSpan |
net6.0 | 418ns | 0.474ns | 1.83ns | 0.00807 | 0 | 0 | 576 B |
#6078 | StartFinishSpan |
netcoreapp3.1 | 640ns | 0.943ns | 3.53ns | 0.00796 | 0 | 0 | 576 B |
#6078 | StartFinishSpan |
net472 | 568ns | 0.624ns | 2.42ns | 0.0916 | 0 | 0 | 578 B |
#6078 | StartFinishScope |
net6.0 | 477ns | 0.422ns | 1.64ns | 0.00977 | 0 | 0 | 696 B |
#6078 | StartFinishScope |
netcoreapp3.1 | 651ns | 0.271ns | 1.02ns | 0.00944 | 0 | 0 | 696 B |
#6078 | StartFinishScope |
net472 | 819ns | 0.704ns | 2.73ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6078
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.147
612.66
702.78
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.138
849.29
966.66
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.147 | 612.66 | 702.78 | |
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.138 | 849.29 | 966.66 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 612ns | 0.446ns | 1.73ns | 0.00973 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 849ns | 0.736ns | 2.85ns | 0.00936 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 0.834ns | 3.23ns | 0.104 | 0 | 0 | 658 B |
#6078 | RunOnMethodBegin |
net6.0 | 702ns | 0.586ns | 2.27ns | 0.00986 | 0 | 0 | 696 B |
#6078 | RunOnMethodBegin |
netcoreapp3.1 | 966ns | 0.633ns | 2.45ns | 0.00919 | 0 | 0 | 696 B |
#6078 | RunOnMethodBegin |
net472 | 1.14μs | 1.12ns | 4.32ns | 0.104 | 0 | 0 | 658 B |
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 (6078) (11.096M) : 0, 11096482
master (11.115M) : 0, 11115019
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6078) (7.286M) : 0, 7286456
master (7.288M) : 0, 7288058
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.570M) : 0, 7569548
section Manual
master (11.119M) : 0, 11118645
section Manual + Automatic
This PR (6078) (6.825M) : 0, 6825021
master (6.759M) : 0, 6759326
section DD_TRACE_ENABLED=0
master (10.256M) : 0, 10256341
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6078) (9.496M) : 0, 9496299
master (9.521M) : 0, 9521038
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6078) (6.537M) : 0, 6537352
master (6.498M) : 0, 6498406
section Trace stats
master (6.942M) : 0, 6941628
section Manual
master (9.493M) : 0, 9493351
section Manual + Automatic
This PR (6078) (6.116M) : 0, 6115824
master (5.986M) : 0, 5986449
section DD_TRACE_ENABLED=0
master (8.976M) : 0, 8976249
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6078) (10.058M) : 0, 10057743
master (10.101M) : 0, 10100514
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6078) (6.734M) : 0, 6733681
master (6.620M) : 0, 6619828
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.357M) : 0, 7356653
section Manual
master (10.092M) : 0, 10091514
section Manual + Automatic
This PR (6078) (6.195M) : 0, 6195384
master (6.098M) : 0, 6097760
section DD_TRACE_ENABLED=0
master (9.472M) : 0, 9472383
|
af5b359
to
5ab9cfa
Compare
Summary of changes
This PR aims to fix various kind of runtime exceptions while trying the get field value by reflection