-
Notifications
You must be signed in to change notification settings - Fork 143
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] Hotfix SymDB and ER #6468
Conversation
dudikeleti
commented
Dec 19, 2024
•
edited
Loading
edited
- Disable compresison in SymDB and fix out of range exception while collecting arguments of some methods
- Exception Replay should work even Live Debugger has not initialized
391c9a9
to
77976dc
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.
LGTM
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 (6468) - mean (68ms) : 66, 71
. : milestone, 68,
master - mean (69ms) : 65, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (976ms) : 951, 1002
. : milestone, 976,
master - mean (977ms) : 955, 999
. : milestone, 977,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6468) - mean (107ms) : 105, 109
. : milestone, 107,
master - mean (107ms) : 105, 109
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (678ms) : 664, 692
. : milestone, 678,
master - mean (678ms) : 667, 689
. : milestone, 678,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6468) - mean (91ms) : 88, 94
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (635ms) : 622, 648
. : milestone, 635,
master - mean (635ms) : 615, 655
. : milestone, 635,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6468) - mean (193ms) : 189, 197
. : milestone, 193,
master - mean (194ms) : 187, 201
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (1,103ms) : 1072, 1135
. : milestone, 1103,
master - mean (1,103ms) : 1070, 1136
. : milestone, 1103,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6468) - mean (279ms) : 275, 283
. : milestone, 279,
master - mean (278ms) : 274, 282
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (873ms) : 844, 902
. : milestone, 873,
master - mean (870ms) : 846, 894
. : milestone, 870,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6468) - mean (266ms) : 262, 270
. : milestone, 266,
master - mean (267ms) : 263, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6468) - mean (851ms) : 818, 884
. : milestone, 851,
master - mean (848ms) : 814, 882
. : milestone, 848,
|
77976dc
to
baca6a2
Compare
Datadog ReportBranch report: ✅ 0 Failed, 471917 Passed, 3708 Skipped, 52h 10m 9.87s Total Time |
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.
I'm not really sure where the bug was - in general it would be nice if there was a test showing the failure which is then fixed 🙂
The issue was with the compressed symbols. It cause to missing symbols in all .net services. |
2. Do not use LD in ER 3. Fix OutOfRange in SymDB
139cfcb
to
8ad6dd9
Compare
Benchmarks Report for tracer 🐌Benchmarks for #6468 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‑net6.0 | 1.172 | 397.50 | 465.95 | |
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.126 | 684.80 | 771.05 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 397ns | 0.239ns | 0.895ns | 0.008 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 617ns | 0.43ns | 1.67ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 704ns | 0.203ns | 0.785ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 558ns | 0.432ns | 1.67ns | 0.0098 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 685ns | 0.368ns | 1.42ns | 0.00942 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 897ns | 0.523ns | 2.03ns | 0.104 | 0 | 0 | 658 B |
#6468 | StartFinishSpan |
net6.0 | 466ns | 0.413ns | 1.6ns | 0.00811 | 0 | 0 | 576 B |
#6468 | StartFinishSpan |
netcoreapp3.1 | 557ns | 0.246ns | 0.92ns | 0.00783 | 0 | 0 | 576 B |
#6468 | StartFinishSpan |
net472 | 687ns | 0.349ns | 1.35ns | 0.0915 | 0 | 0 | 578 B |
#6468 | StartFinishScope |
net6.0 | 570ns | 0.237ns | 0.919ns | 0.00976 | 0 | 0 | 696 B |
#6468 | StartFinishScope |
netcoreapp3.1 | 772ns | 0.709ns | 2.65ns | 0.00931 | 0 | 0 | 696 B |
#6468 | StartFinishScope |
net472 | 827ns | 0.626ns | 2.26ns | 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 | 615ns | 0.399ns | 1.54ns | 0.00958 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1μs | 0.866ns | 3.35ns | 0.00899 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.14μs | 1.08ns | 4.19ns | 0.104 | 0 | 0 | 658 B |
#6468 | RunOnMethodBegin |
net6.0 | 610ns | 0.168ns | 0.649ns | 0.00973 | 0 | 0 | 696 B |
#6468 | RunOnMethodBegin |
netcoreapp3.1 | 964ns | 0.631ns | 2.36ns | 0.00917 | 0 | 0 | 696 B |
#6468 | RunOnMethodBegin |
net472 | 1.13μs | 0.662ns | 2.56ns | 0.104 | 0 | 0 | 658 B |
- Disable compression in SymDB - Fix out of range exception while collecting arguments of some methods - Fix type mismatch in dnlib metadata reader that causes invalid cast exception - Exception Replay should work even Live Debugger has not initialized
- Disable compression in SymDB - Fix out of range exception while collecting arguments of some methods - Fix type mismatch in dnlib metadata reader that causes invalid cast exception - Exception Replay should work even Live Debugger has not initialized