-
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] Add NotCapturedReason for unreachable local var value in async method #5161
Conversation
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. 1 occurrences of : - "isNull": "true",
+ "notCapturedReason": "The value of this variable in not available in the specified probe location. Place a line probe closer to where the variable was assigned or used to obtain its value.",
|
Datadog ReportBranch report: ✅ 0 Failed, 275675 Passed, 1865 Skipped, 58m 51.42s Wall Time ⌛ Performance Regressions vs Default Branch (1)
|
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 (5161) - mean (75ms) : 64, 85
. : milestone, 75,
master - mean (73ms) : 67, 79
. : milestone, 73,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (1,006ms) : 986, 1026
. : milestone, 1006,
master - mean (1,005ms) : 987, 1024
. : milestone, 1005,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5161) - mean (110ms) : 106, 115
. : milestone, 110,
master - mean (110ms) : 107, 113
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (724ms) : 701, 746
. : milestone, 724,
master - mean (723ms) : 702, 744
. : milestone, 723,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5161) - mean (94ms) : 92, 96
. : milestone, 94,
master - mean (93ms) : 90, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (679ms) : 658, 700
. : milestone, 679,
master - mean (677ms) : 651, 704
. : milestone, 677,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5161) - mean (188ms) : 186, 191
. : milestone, 188,
master - mean (189ms) : 186, 192
. : milestone, 189,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (1,080ms) : 1051, 1108
. : milestone, 1080,
master - mean (1,087ms) : 1058, 1115
. : milestone, 1087,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5161) - mean (271ms) : 267, 276
. : milestone, 271,
master - mean (273ms) : 268, 277
. : milestone, 273,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (874ms) : 848, 899
. : milestone, 874,
master - mean (877ms) : 855, 900
. : milestone, 877,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5161) - mean (261ms) : 258, 264
. : milestone, 261,
master - mean (262ms) : 258, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (5161) - mean (860ms) : 834, 886
. : milestone, 860,
master - mean (859ms) : 833, 884
. : milestone, 859,
|
Benchmarks Report 🐌Benchmarks for #5161 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.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecWafBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.4 KB | 41.65 KB | 247 B | 0.60% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 41.89 KB | 41.66 KB | -227 B | -0.54% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 534μs | 2.64μs | 10.9μs | 0.553 | 0 | 0 | 41.4 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 656μs | 778ns | 2.91μs | 0.334 | 0 | 0 | 41.89 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 846μs | 3.74μs | 14.5μs | 8.08 | 2.55 | 0.425 | 53.25 KB |
#5161 | WriteAndFlushEnrichedTraces |
net6.0 | 568μs | 3μs | 15.9μs | 0.558 | 0 | 0 | 41.65 KB |
#5161 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 655μs | 2.3μs | 8.92μs | 0.331 | 0 | 0 | 41.66 KB |
#5161 | WriteAndFlushEnrichedTraces |
net472 | 819μs | 3.91μs | 15.7μs | 8.22 | 2.47 | 0.411 | 53.24 KB |
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteNonQuery |
net6.0 | 1.13μs | 0.507ns | 1.9ns | 0.0108 | 0 | 0 | 776 B |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.47μs | 0.866ns | 3.35ns | 0.0102 | 0 | 0 | 776 B |
master | ExecuteNonQuery |
net472 | 1.69μs | 0.891ns | 3.21ns | 0.117 | 0 | 0 | 738 B |
#5161 | ExecuteNonQuery |
net6.0 | 1.21μs | 1.48ns | 5.72ns | 0.0108 | 0 | 0 | 776 B |
#5161 | ExecuteNonQuery |
netcoreapp3.1 | 1.52μs | 0.744ns | 2.88ns | 0.0104 | 0 | 0 | 776 B |
#5161 | ExecuteNonQuery |
net472 | 1.83μs | 2.09ns | 7.54ns | 0.117 | 0 | 0 | 738 B |
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | CallElasticsearch |
net6.0 | 1.24μs | 0.718ns | 2.68ns | 0.0131 | 0 | 0 | 944 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.56μs | 0.799ns | 2.88ns | 0.0124 | 0 | 0 | 944 B |
master | CallElasticsearch |
net472 | 2.4μs | 1.07ns | 4.14ns | 0.152 | 0 | 0 | 963 B |
master | CallElasticsearchAsync |
net6.0 | 1.22μs | 0.713ns | 2.76ns | 0.0133 | 0 | 0 | 920 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.67μs | 0.731ns | 2.83ns | 0.0133 | 0 | 0 | 992 B |
master | CallElasticsearchAsync |
net472 | 2.55μs | 1.55ns | 6.01ns | 0.162 | 0 | 0 | 1.02 KB |
#5161 | CallElasticsearch |
net6.0 | 1.21μs | 0.724ns | 2.81ns | 0.0133 | 0 | 0 | 944 B |
#5161 | CallElasticsearch |
netcoreapp3.1 | 1.55μs | 0.531ns | 2.06ns | 0.0124 | 0 | 0 | 944 B |
#5161 | CallElasticsearch |
net472 | 2.51μs | 1.82ns | 7.04ns | 0.152 | 0 | 0 | 963 B |
#5161 | CallElasticsearchAsync |
net6.0 | 1.28μs | 0.749ns | 2.8ns | 0.0127 | 0 | 0 | 920 B |
#5161 | CallElasticsearchAsync |
netcoreapp3.1 | 1.62μs | 0.405ns | 1.52ns | 0.013 | 0 | 0 | 992 B |
#5161 | CallElasticsearchAsync |
net472 | 2.69μs | 1.39ns | 5.37ns | 0.161 | 0 | 0 | 1.02 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.3μs | 0.832ns | 3.11ns | 0.0129 | 0 | 0 | 920 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.62μs | 1.01ns | 3.79ns | 0.0122 | 0 | 0 | 920 B |
master | ExecuteAsync |
net472 | 1.86μs | 0.549ns | 2.06ns | 0.14 | 0 | 0 | 883 B |
#5161 | ExecuteAsync |
net6.0 | 1.19μs | 1.01ns | 3.79ns | 0.0131 | 0 | 0 | 920 B |
#5161 | ExecuteAsync |
netcoreapp3.1 | 1.66μs | 0.661ns | 2.47ns | 0.0125 | 0 | 0 | 920 B |
#5161 | ExecuteAsync |
net472 | 1.82μs | 0.99ns | 3.71ns | 0.139 | 0 | 0 | 883 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.1μs | 3.81ns | 14.7ns | 0.029 | 0 | 0 | 2.1 KB |
master | SendAsync |
netcoreapp3.1 | 4.82μs | 1.63ns | 5.88ns | 0.0362 | 0 | 0 | 2.64 KB |
master | SendAsync |
net472 | 7.74μs | 2.53ns | 9.47ns | 0.524 | 0 | 0 | 3.31 KB |
#5161 | SendAsync |
net6.0 | 4μs | 2.12ns | 7.95ns | 0.0301 | 0 | 0 | 2.1 KB |
#5161 | SendAsync |
netcoreapp3.1 | 5.08μs | 2.06ns | 7.99ns | 0.0354 | 0 | 0 | 2.64 KB |
#5161 | SendAsync |
net472 | 7.68μs | 2.67ns | 10.3ns | 0.526 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #5161
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
205.46 KB
216.76 KB
11.3 KB
5.50%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
202.89 KB
213.75 KB
10.86 KB
5.35%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472
221.18 KB
229.38 KB
8.19 KB
3.70%
Fewer allocations 🎉 in #5161
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472
59.26 KB
57.1 KB
-2.16 KB
-3.64%
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 205.46 KB | 216.76 KB | 11.3 KB | 5.50% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 202.89 KB | 213.75 KB | 10.86 KB | 5.35% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 221.18 KB | 229.38 KB | 8.19 KB | 3.70% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 59.26 KB | 57.1 KB | -2.16 KB | -3.64% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 60.2μs | 846ns | 8.2μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 52.8μs | 226ns | 781ns | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 37.4μs | 80.6ns | 290ns | 0 | 0 | 0 | 59.26 KB |
master | StringConcatAspectBenchmark |
net6.0 | 286μs | 5.49μs | 54.3μs | 0 | 0 | 0 | 205.46 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 275μs | 1.4μs | 8.54μs | 0 | 0 | 0 | 202.89 KB |
master | StringConcatAspectBenchmark |
net472 | 232μs | 1.16μs | 5.31μs | 0 | 0 | 0 | 221.18 KB |
#5161 | StringConcatBenchmark |
net6.0 | 58.2μs | 656ns | 6.53μs | 0 | 0 | 0 | 43.44 KB |
#5161 | StringConcatBenchmark |
netcoreapp3.1 | 52.7μs | 247ns | 988ns | 0 | 0 | 0 | 42.64 KB |
#5161 | StringConcatBenchmark |
net472 | 37.8μs | 78.2ns | 292ns | 0 | 0 | 0 | 57.1 KB |
#5161 | StringConcatAspectBenchmark |
net6.0 | 286μs | 1.52μs | 8.02μs | 0 | 0 | 0 | 216.76 KB |
#5161 | StringConcatAspectBenchmark |
netcoreapp3.1 | 289μs | 1.11μs | 5.54μs | 0 | 0 | 0 | 213.75 KB |
#5161 | StringConcatAspectBenchmark |
net472 | 223μs | 1.09μs | 4.61μs | 0 | 0 | 0 | 229.38 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.47μs | 0.906ns | 3.51ns | 0.0222 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.16μs | 1.72ns | 6.65ns | 0.0217 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 2.53μs | 1.35ns | 5.21ns | 0.239 | 0 | 0 | 1.51 KB |
#5161 | EnrichedLog |
net6.0 | 1.47μs | 2.33ns | 8.42ns | 0.022 | 0 | 0 | 1.58 KB |
#5161 | EnrichedLog |
netcoreapp3.1 | 2.24μs | 0.646ns | 2.33ns | 0.0212 | 0 | 0 | 1.58 KB |
#5161 | EnrichedLog |
net472 | 2.51μs | 4.89ns | 18.9ns | 0.238 | 0 | 0 | 1.51 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 | 114μs | 278ns | 1.08μs | 0.0567 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
netcoreapp3.1 | 118μs | 112ns | 434ns | 0 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
net472 | 147μs | 77.4ns | 290ns | 0.658 | 0.219 | 0 | 4.4 KB |
#5161 | EnrichedLog |
net6.0 | 113μs | 113ns | 437ns | 0.0565 | 0 | 0 | 4.22 KB |
#5161 | EnrichedLog |
netcoreapp3.1 | 118μs | 106ns | 396ns | 0 | 0 | 0 | 4.22 KB |
#5161 | EnrichedLog |
net472 | 147μs | 155ns | 602ns | 0.657 | 0.219 | 0 | 4.4 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 | 2.96μs | 0.994ns | 3.85ns | 0.0296 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.16μs | 1.5ns | 5.83ns | 0.0292 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
net472 | 4.9μs | 2.74ns | 10.3ns | 0.309 | 0 | 0 | 1.95 KB |
#5161 | EnrichedLog |
net6.0 | 2.98μs | 1.51ns | 5.64ns | 0.0299 | 0 | 0 | 2.14 KB |
#5161 | EnrichedLog |
netcoreapp3.1 | 4.16μs | 1.85ns | 6.93ns | 0.0294 | 0 | 0 | 2.14 KB |
#5161 | EnrichedLog |
net472 | 4.85μs | 1.81ns | 6.53ns | 0.308 | 0 | 0 | 1.95 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.46μs | 0.448ns | 1.73ns | 0.016 | 0 | 0 | 1.11 KB |
master | SendReceive |
netcoreapp3.1 | 1.84μs | 1.57ns | 6.09ns | 0.0146 | 0 | 0 | 1.11 KB |
master | SendReceive |
net472 | 2.19μs | 1.56ns | 6.05ns | 0.178 | 0 | 0 | 1.12 KB |
#5161 | SendReceive |
net6.0 | 1.41μs | 0.361ns | 1.4ns | 0.0156 | 0 | 0 | 1.11 KB |
#5161 | SendReceive |
netcoreapp3.1 | 1.78μs | 3.08ns | 11.5ns | 0.015 | 0 | 0 | 1.11 KB |
#5161 | SendReceive |
net472 | 2.21μs | 2.13ns | 8.27ns | 0.178 | 0 | 0 | 1.12 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.84μs | 0.956ns | 3.31ns | 0.0213 | 0 | 0 | 1.54 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.85μs | 1.81ns | 6.54ns | 0.0213 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 4.27μs | 2.2ns | 8.22ns | 0.312 | 0 | 0 | 1.97 KB |
#5161 | EnrichedLog |
net6.0 | 2.76μs | 0.482ns | 1.8ns | 0.0207 | 0 | 0 | 1.54 KB |
#5161 | EnrichedLog |
netcoreapp3.1 | 3.99μs | 1.52ns | 5.88ns | 0.0219 | 0 | 0 | 1.58 KB |
#5161 | EnrichedLog |
net472 | 4.35μs | 2.03ns | 7.88ns | 0.312 | 0 | 0 | 1.97 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5161
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472
1.125
1,035.19
920.54
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472 | 1.125 | 1,035.19 | 920.54 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 515ns | 0.492ns | 1.77ns | 0.00751 | 0 | 0 | 544 B |
master | StartFinishSpan |
netcoreapp3.1 | 722ns | 0.691ns | 2.59ns | 0.00718 | 0 | 0 | 544 B |
master | StartFinishSpan |
net472 | 752ns | 0.957ns | 3.71ns | 0.0865 | 0 | 0 | 546 B |
master | StartFinishScope |
net6.0 | 605ns | 0.484ns | 1.87ns | 0.00915 | 0 | 0 | 664 B |
master | StartFinishScope |
netcoreapp3.1 | 829ns | 1.08ns | 4.2ns | 0.0089 | 0 | 0 | 664 B |
master | StartFinishScope |
net472 | 1.03μs | 3.04ns | 11.8ns | 0.0991 | 0 | 0 | 626 B |
#5161 | StartFinishSpan |
net6.0 | 488ns | 1.04ns | 4.01ns | 0.00752 | 0 | 0 | 544 B |
#5161 | StartFinishSpan |
netcoreapp3.1 | 719ns | 1.14ns | 4.28ns | 0.00736 | 0 | 0 | 544 B |
#5161 | StartFinishSpan |
net472 | 762ns | 1.18ns | 4.59ns | 0.0867 | 0 | 0 | 546 B |
#5161 | StartFinishScope |
net6.0 | 552ns | 1.07ns | 4.13ns | 0.0094 | 0 | 0 | 664 B |
#5161 | StartFinishScope |
netcoreapp3.1 | 781ns | 1.69ns | 6.53ns | 0.00895 | 0 | 0 | 664 B |
#5161 | StartFinishScope |
net472 | 920ns | 1.59ns | 6.16ns | 0.0993 | 0 | 0 | 626 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 | 746ns | 0.669ns | 2.5ns | 0.00931 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1.05μs | 0.785ns | 3.04ns | 0.00899 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
net472 | 1.05μs | 1.75ns | 6.76ns | 0.0995 | 0 | 0 | 626 B |
#5161 | RunOnMethodBegin |
net6.0 | 739ns | 1.16ns | 4.5ns | 0.00913 | 0 | 0 | 664 B |
#5161 | RunOnMethodBegin |
netcoreapp3.1 | 966ns | 1.22ns | 4.74ns | 0.00867 | 0 | 0 | 664 B |
#5161 | RunOnMethodBegin |
net472 | 1.05μs | 1.38ns | 5.33ns | 0.0993 | 0 | 0 | 626 B |
Datadog ReportBranch report: ✅ 0 Failed, 346286 Passed, 2075 Skipped, 41m 13.77s Wall Time ⌛ Performance Regressions vs Default Branch (1)
|
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Outdated
Show resolved
Hide resolved
594d6ec
to
907a859
Compare
Throughput/Crank Report:zap: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 (5161) (11.193M) : 0, 11193252
master (10.789M) : 0, 10788533
benchmarks/2.9.0 (10.973M) : 0, 10972668
section Automatic
This PR (5161) (7.670M) : 0, 7669516
master (7.560M) : 0, 7559733
benchmarks/2.9.0 (7.971M) : 0, 7971440
section Trace stats
This PR (5161) (8.151M) : 0, 8150968
master (8.053M) : 0, 8052644
section Manual
This PR (5161) (9.751M) : 0, 9750583
master (9.492M) : 0, 9492379
section Manual + Automatic
This PR (5161) (7.461M) : 0, 7460671
master (7.136M) : 0, 7135505
section Version Conflict
This PR (5161) (6.691M) : 0, 6691164
master (6.460M) : 0, 6460304
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5161) (9.639M) : 0, 9639198
master (9.533M) : 0, 9533107
benchmarks/2.9.0 (9.671M) : 0, 9670561
section Automatic
This PR (5161) (6.525M) : 0, 6524944
master (6.638M) : 0, 6638280
section Trace stats
This PR (5161) (6.774M) : 0, 6773754
master (6.876M) : 0, 6876400
section Manual
This PR (5161) (8.190M) : 0, 8190068
master (8.165M) : 0, 8165155
section Manual + Automatic
This PR (5161) (6.066M) : 0, 6065774
master (6.240M) : 0, 6239780
section Version Conflict
This PR (5161) (5.700M) : 0, 5699784
master (5.752M) : 0, 5751627
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5161) (9.678M) : 0, 9677720
master (6.494M) : 0, 6494213
benchmarks/2.9.0 (9.723M) : 0, 9723215
section Automatic
This PR (5161) (6.944M) : 0, 6943718
master (6.918M) : 0, 6917696
benchmarks/2.9.0 (7.095M) : 0, 7094697
section Trace stats
This PR (5161) (7.275M) : 0, 7274663
master (7.159M) : 0, 7159495
section Manual
This PR (5161) (8.610M) : 0, 8609544
master (8.516M) : 0, 8516494
section Manual + Automatic
This PR (5161) (6.686M) : 0, 6685653
master (6.802M) : 0, 6801643
section Version Conflict
This PR (5161) (6.156M) : 0, 6156114
master (6.001M) : 0, 6001040
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
benchmarks/2.9.0 (20.689M) : 0, 20689363
section No attack
benchmarks/2.9.0 (20.448M) : 0, 20448059
section Attack
benchmarks/2.9.0 (17.167M) : 0, 17166673
|
114e66c
to
25ae4f5
Compare
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.
Left a few comments. Nicely done.
tracer/src/Datadog.Trace/Debugger/Instrumentation/AsyncMethodDebuggerInvoker.SingleProbe.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Instrumentation/AsyncMethodDebuggerInvoker.SingleProbe.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.NotCapturedReason.cs
Outdated
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.UnreachableLocal.cs
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.cs
Show resolved
Hide resolved
tracer/src/Datadog.Trace/Debugger/Instrumentation/AsyncMethodDebuggerInvoker.SingleProbe.cs
Outdated
Show resolved
Hide resolved
25ae4f5
to
0dbf7f3
Compare
Datadog ReportBranch report: ✅ 0 Failed, 331778 Passed, 2055 Skipped, 54m 15.03s Wall Time ⌛ Performance Regressions vs Default Branch (3) |
Benchmarks Report for tracer 🐌Benchmarks for #5161 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‑net6.0 | 1.155 | 593.79 | 685.82 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 479ns | 0.328ns | 1.27ns | 0.00771 | 0 | 0 | 552 B |
master | StartFinishSpan |
netcoreapp3.1 | 759ns | 1.09ns | 4.07ns | 0.00722 | 0 | 0 | 552 B |
master | StartFinishSpan |
net472 | 718ns | 0.675ns | 2.61ns | 0.0879 | 0 | 0 | 554 B |
master | StartFinishScope |
net6.0 | 594ns | 0.291ns | 1.13ns | 0.00954 | 0 | 0 | 672 B |
master | StartFinishScope |
netcoreapp3.1 | 897ns | 0.649ns | 2.43ns | 0.00872 | 0 | 0 | 672 B |
master | StartFinishScope |
net472 | 971ns | 0.64ns | 2.31ns | 0.1 | 0 | 0 | 634 B |
#5161 | StartFinishSpan |
net6.0 | 478ns | 0.363ns | 1.36ns | 0.00772 | 0 | 0 | 552 B |
#5161 | StartFinishSpan |
netcoreapp3.1 | 721ns | 0.479ns | 1.79ns | 0.00748 | 0 | 0 | 552 B |
#5161 | StartFinishSpan |
net472 | 766ns | 1.1ns | 4.27ns | 0.0878 | 0 | 0 | 554 B |
#5161 | StartFinishScope |
net6.0 | 686ns | 0.514ns | 1.99ns | 0.00936 | 0 | 0 | 672 B |
#5161 | StartFinishScope |
netcoreapp3.1 | 844ns | 1.02ns | 3.94ns | 0.00917 | 0 | 0 | 672 B |
#5161 | StartFinishScope |
net472 | 922ns | 1.32ns | 5.12ns | 0.1 | 0 | 0 | 634 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 | 658ns | 0.817ns | 3.17ns | 0.00945 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 950ns | 0.6ns | 2.32ns | 0.00894 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
net472 | 1.07μs | 1.07ns | 4.16ns | 0.101 | 0 | 0 | 634 B |
#5161 | RunOnMethodBegin |
net6.0 | 685ns | 0.652ns | 2.52ns | 0.00939 | 0 | 0 | 672 B |
#5161 | RunOnMethodBegin |
netcoreapp3.1 | 969ns | 1.63ns | 6.32ns | 0.00875 | 0 | 0 | 672 B |
#5161 | RunOnMethodBegin |
net472 | 1.15μs | 1.52ns | 5.88ns | 0.101 | 0 | 0 | 634 B |
f550f65
to
859a823
Compare
Summary of changes
This PR handle the scenario of having locals in async method that was not hoisted within the state machine object. In this scenario, we can't get their values at method end so we are displaying their default values.
Reason for change
When customer see snapshot of such a method, he could be confusing about the local variable value that he is seeing.
Implementation details
We are wrapping those locals in dedicated struct that indicate that we might not able to get their real values.
Test coverage
AsyncMethodWithNotHoistedLocals
AsyncVoid