Add more info when GenerateDumpIfDbgRequested fails (take 3)#6325
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 457543 Passed, 3200 Skipped, 21h 20m 9.6s 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 (6325) - mean (72ms) : 64, 80
. : milestone, 72,
master - mean (72ms) : 64, 80
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (1,110ms) : 1093, 1128
. : milestone, 1110,
master - mean (1,107ms) : 1085, 1128
. : milestone, 1107,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6325) - mean (109ms) : 106, 111
. : milestone, 109,
master - mean (108ms) : 106, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (770ms) : 752, 787
. : milestone, 770,
master - mean (771ms) : 757, 785
. : milestone, 771,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6325) - mean (92ms) : 91, 93
. : milestone, 92,
master - mean (92ms) : 90, 93
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (723ms) : 709, 737
. : milestone, 723,
master - mean (726ms) : 707, 745
. : milestone, 726,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6325) - mean (191ms) : 186, 195
. : milestone, 191,
master - mean (191ms) : 186, 195
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (1,211ms) : 1191, 1231
. : milestone, 1211,
master - mean (1,213ms) : 1190, 1236
. : milestone, 1213,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6325) - mean (276ms) : 273, 280
. : milestone, 276,
master - mean (276ms) : 271, 281
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (946ms) : 925, 967
. : milestone, 946,
master - mean (948ms) : 929, 967
. : milestone, 948,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6325) - mean (267ms) : 262, 271
. : milestone, 267,
master - mean (265ms) : 261, 270
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6325) - mean (939ms) : 920, 958
. : milestone, 939,
master - mean (931ms) : 913, 950
. : milestone, 931,
|
0651826 to
9443269
Compare
Benchmarks Report for tracer 🐌Benchmarks for #6325 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‑netcoreapp3.1 | 1.139 | 671.42 | 764.55 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 493ns | 0.527ns | 2.04ns | 0.00801 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 552ns | 0.94ns | 3.64ns | 0.00779 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 636ns | 1.38ns | 5.33ns | 0.0917 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 488ns | 0.365ns | 1.42ns | 0.00966 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 671ns | 0.68ns | 2.63ns | 0.00929 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 971ns | 3.45ns | 13.4ns | 0.104 | 0 | 0 | 658 B |
| #6325 | StartFinishSpan |
net6.0 | 455ns | 0.273ns | 1.06ns | 0.00798 | 0 | 0 | 576 B |
| #6325 | StartFinishSpan |
netcoreapp3.1 | 550ns | 0.325ns | 1.26ns | 0.00781 | 0 | 0 | 576 B |
| #6325 | StartFinishSpan |
net472 | 581ns | 1.05ns | 4.06ns | 0.0917 | 0 | 0 | 578 B |
| #6325 | StartFinishScope |
net6.0 | 501ns | 0.289ns | 1.12ns | 0.00965 | 0 | 0 | 696 B |
| #6325 | StartFinishScope |
netcoreapp3.1 | 764ns | 0.659ns | 2.55ns | 0.00945 | 0 | 0 | 696 B |
| #6325 | StartFinishScope |
net472 | 910ns | 1.77ns | 6.84ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6325
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.158
677.49
584.88
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.158 | 677.49 | 584.88 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net6.0 | 678ns | 1.39ns | 5.37ns | 0.00992 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 966ns | 0.736ns | 2.85ns | 0.00918 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.1μs | 2.28ns | 8.83ns | 0.104 | 0 | 0 | 658 B |
| #6325 | RunOnMethodBegin |
net6.0 | 585ns | 0.538ns | 2.08ns | 0.00991 | 0 | 0 | 696 B |
| #6325 | RunOnMethodBegin |
netcoreapp3.1 | 909ns | 1.04ns | 4.04ns | 0.00944 | 0 | 0 | 696 B |
| #6325 | RunOnMethodBegin |
net472 | 1.13μs | 1.81ns | 7.01ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Enable createdump diagnostics during the
GenerateDumpIfDbgRequestedtest.Reason for change
Thanks to the added information from #6197, I have good confidence that createdump is crashing before resuming the parent process. I hope that enabling diagnostic messages will give more insight as to why/where it crashes.
Implementation details
Setting
COMPlus_CreateDumpDiagnostics=1