Closed kevingosse closed 2 months ago
Branch report: kevin/createdump_child
Commit report: 2088be8
Test service: dd-trace-dotnet
:white_check_mark: 0 Failed, 360530 Passed, 2324 Skipped, 16h 44m 48.23s Total Time
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 (5980) - mean (70ms) : 66, 75
. : milestone, 70,
master - mean (69ms) : 67, 71
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (1,082ms) : 1052, 1113
. : milestone, 1082,
master - mean (1,077ms) : 1053, 1101
. : milestone, 1077,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5980) - mean (110ms) : 105, 114
. : milestone, 110,
master - mean (109ms) : 105, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (759ms) : 737, 781
. : milestone, 759,
master - mean (758ms) : 739, 778
. : milestone, 758,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5980) - mean (93ms) : 89, 97
. : milestone, 93,
master - mean (92ms) : 90, 95
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (714ms) : 694, 735
. : milestone, 714,
master - mean (710ms) : 697, 724
. : milestone, 710,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5980) - mean (191ms) : 187, 195
. : milestone, 191,
master - mean (190ms) : 187, 192
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (1,165ms) : 1139, 1191
. : milestone, 1165,
master - mean (1,160ms) : 1137, 1184
. : milestone, 1160,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5980) - mean (277ms) : 270, 283
. : milestone, 277,
master - mean (274ms) : 270, 279
. : milestone, 274,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (922ms) : 900, 945
. : milestone, 922,
master - mean (922ms) : 902, 942
. : milestone, 922,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5980) - mean (264ms) : 260, 268
. : milestone, 264,
master - mean (264ms) : 259, 268
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (5980) - mean (899ms) : 880, 917
. : milestone, 899,
master - mean (902ms) : 883, 922
. : milestone, 902,
Benchmarks for #5980 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored.
Summary of changes
To distinguish the case when createdump is called because of a crash vs a call from
dotnet-dump
, we store a dummy value inCOMPlus_DbgMiniDumpName
: https://github.com/DataDog/dd-trace-dotnet/pull/5852However, this becomes a problem when the process spawns a child process, as it inherits the dummy
COMPlus_DbgMiniDumpName
and we lose the original value.To get around that, this PR saves the original value in
DD_INTERNAL_CRASHTRACKING_MINIDUMPNAME
so the children can retrieve it.Reason for change
This prevents the crash dump to be generated when launching the app from a bash script when
LD_PRELOAD
is set globally.Implementation details
We discovered that bash provides its own version of the
getenv
/setenv
functions, which leads to some unexpected behavior. To get around that, we usedlsym
to fetch the original libc functions.Test coverage
Added a test with a sample app launched from a bash script.