Skip to content

Conversation

@dudikeleti
Copy link
Contributor

Summary of changes

Remove the hard-coded 100-probe limit per ptobe type for Dynamic Instrumentation and replace it with an internal, configurable per-type limit that defaults to “no limit”.

Reason for change

The MCP server and agentic debugging use cases are becoming increasingly popular. This growth is expected to lead to hitting the 100 probe limit in services more frequently.

@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7848) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration76.33 ± (76.16 - 77.06) ms76.26 ± (76.30 - 77.13) ms-0.1%
.NET Framework 4.8 - Bailout
duration79.96 ± (80.01 - 80.99) ms81.47 ± (81.61 - 82.44) ms+1.9%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1127.45 ± (1128.51 - 1137.66) ms1131.21 ± (1134.92 - 1146.73) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms23.13 ± (23.05 - 23.21) ms23.29 ± (23.20 - 23.39) ms+0.7%✅⬆️
process.time_to_main_ms88.14 ± (87.70 - 88.58) ms89.33 ± (88.83 - 89.83) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.90 - 10.91) MB10.90 ± (10.90 - 10.90) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.97 ± (22.90 - 23.04) ms23.06 ± (22.98 - 23.14) ms+0.4%✅⬆️
process.time_to_main_ms89.14 ± (88.65 - 89.63) ms89.65 ± (89.18 - 90.12) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.94) MB10.94 ± (10.94 - 10.94) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms219.96 ± (218.61 - 221.32) ms220.29 ± (219.02 - 221.56) ms+0.1%✅⬆️
process.time_to_main_ms554.78 ± (553.30 - 556.26) ms553.53 ± (552.25 - 554.81) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed52.57 ± (52.55 - 52.59) MB52.50 ± (52.48 - 52.52) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.81 ± (21.72 - 21.90) ms21.88 ± (21.80 - 21.95) ms+0.3%✅⬆️
process.time_to_main_ms76.95 ± (76.48 - 77.42) ms77.08 ± (76.64 - 77.52) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.60 - 10.61) MB10.63 ± (10.63 - 10.63) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.96 ± (21.88 - 22.04) ms21.86 ± (21.79 - 21.93) ms-0.5%
process.time_to_main_ms78.90 ± (78.46 - 79.33) ms77.88 ± (77.51 - 78.25) ms-1.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.68 ± (10.68 - 10.69) MB10.66 ± (10.66 - 10.67) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms208.91 ± (207.47 - 210.35) ms210.12 ± (208.65 - 211.60) ms+0.6%✅⬆️
process.time_to_main_ms524.66 ± (523.32 - 526.00) ms515.39 ± (514.21 - 516.57) ms-1.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed51.77 ± (51.74 - 51.80) MB51.59 ± (51.56 - 51.62) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 8 - Baseline
process.internal_duration_ms20.29 ± (20.20 - 20.38) ms20.14 ± (20.06 - 20.21) ms-0.8%
process.time_to_main_ms77.09 ± (76.63 - 77.55) ms77.87 ± (77.44 - 78.31) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.65 ± (7.64 - 7.65) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.13 ± (20.06 - 20.19) ms20.03 ± (19.95 - 20.11) ms-0.5%
process.time_to_main_ms77.94 ± (77.57 - 78.31) ms77.69 ± (77.25 - 78.12) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.70 - 7.71) MB7.71 ± (7.71 - 7.72) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms194.36 ± (193.21 - 195.50) ms192.28 ± (191.09 - 193.48) ms-1.1%
process.time_to_main_ms503.15 ± (501.83 - 504.48) ms496.20 ± (494.93 - 497.47) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed39.09 ± (39.05 - 39.13) MB38.94 ± (38.90 - 38.98) MB-0.4%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration194.68 ± (194.59 - 195.39) ms193.07 ± (192.99 - 193.88) ms-0.8%
.NET Framework 4.8 - Bailout
duration198.78 ± (198.36 - 199.28) ms197.08 ± (196.80 - 197.44) ms-0.9%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1177.88 ± (1179.63 - 1189.25) ms1164.97 ± (1164.28 - 1171.01) ms-1.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms188.65 ± (188.28 - 189.02) ms189.06 ± (188.63 - 189.49) ms+0.2%✅⬆️
process.time_to_main_ms80.89 ± (80.65 - 81.14) ms81.30 ± (81.05 - 81.55) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.06 - 16.12) MB16.10 ± (16.07 - 16.13) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.5%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms188.26 ± (187.99 - 188.53) ms188.15 ± (187.83 - 188.47) ms-0.1%
process.time_to_main_ms82.12 ± (81.94 - 82.30) ms82.47 ± (82.30 - 82.64) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.09 - 16.16) MB16.20 ± (16.17 - 16.23) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.5%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms394.26 ± (391.65 - 396.88) ms395.15 ± (392.44 - 397.87) ms+0.2%✅⬆️
process.time_to_main_ms518.26 ± (517.59 - 518.93) ms518.67 ± (518.00 - 519.34) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed62.82 ± (62.67 - 62.98) MB62.83 ± (62.68 - 62.99) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.55 ± (192.24 - 192.86) ms191.83 ± (191.53 - 192.13) ms-0.4%
process.time_to_main_ms69.90 ± (69.74 - 70.06) ms70.08 ± (69.92 - 70.23) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.28 ± (16.19 - 16.37) MB16.27 ± (16.17 - 16.37) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.2%
.NET 6 - Bailout
process.internal_duration_ms192.85 ± (192.44 - 193.27) ms191.60 ± (191.22 - 191.98) ms-0.7%
process.time_to_main_ms71.05 ± (70.95 - 71.16) ms71.16 ± (71.02 - 71.29) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.39 ± (16.30 - 16.48) MB15.99 ± (15.83 - 16.14) MB-2.5%
runtime.dotnet.threads.count20 ± (20 - 20)19 ± (19 - 20)-3.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms415.25 ± (411.90 - 418.60) ms410.69 ± (407.83 - 413.56) ms-1.1%
process.time_to_main_ms487.31 ± (486.64 - 487.97) ms486.73 ± (485.97 - 487.48) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.24 ± (62.11 - 62.38) MB61.99 ± (61.84 - 62.14) MB-0.4%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)-0.0%
.NET 8 - Baseline
process.internal_duration_ms190.40 ± (190.10 - 190.70) ms190.57 ± (190.25 - 190.90) ms+0.1%✅⬆️
process.time_to_main_ms69.39 ± (69.18 - 69.60) ms69.75 ± (69.55 - 69.94) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.76 - 11.82) MB11.73 ± (11.71 - 11.75) MB-0.5%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms189.27 ± (188.88 - 189.66) ms190.33 ± (189.96 - 190.70) ms+0.6%✅⬆️
process.time_to_main_ms70.06 ± (69.96 - 70.17) ms70.80 ± (70.68 - 70.92) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.84 ± (11.79 - 11.89) MB11.80 ± (11.77 - 11.83) MB-0.3%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms362.62 ± (360.95 - 364.29) ms360.84 ± (359.39 - 362.28) ms-0.5%
process.time_to_main_ms466.41 ± (465.82 - 467.00) ms460.94 ± (460.06 - 461.82) ms-1.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.37 ± (50.32 - 50.41) MB50.31 ± (50.27 - 50.34) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.1%✅⬆️
Comparison explanation

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 highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

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).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (77ms)  : 71, 83
    master - mean (77ms)  : 70, 83

    section Bailout
    This PR (7848) - mean (82ms)  : 76, 88
    master - mean (80ms)  : 74, 87

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (1,141ms)  : 1056, 1225
    master - mean (1,133ms)  : 1068, 1198

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (120ms)  : 111, 130
    master - mean (119ms)  : 111, 126

    section Bailout
    This PR (7848) - mean (120ms)  : 112, 129
    master - mean (120ms)  : 111, 129

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (808ms)  : 771, 845
    master - mean (809ms)  : 764, 853

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (106ms)  : 97, 115
    master - mean (106ms)  : 96, 116

    section Bailout
    This PR (7848) - mean (107ms)  : 100, 113
    master - mean (108ms)  : 99, 117

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (758ms)  : 721, 796
    master - mean (768ms)  : 722, 814

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (106ms)  : 99, 114
    master - mean (106ms)  : 97, 115

    section Bailout
    This PR (7848) - mean (107ms)  : 97, 117
    master - mean (106ms)  : 99, 113

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (719ms)  : 684, 755
    master - mean (733ms)  : 698, 768

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (193ms)  : 189, 198
    master - mean (195ms)  : 190, 200

    section Bailout
    This PR (7848) - mean (197ms)  : 194, 200
    master - mean (199ms)  : 194, 203

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (1,168ms)  : 1120, 1215
    master - mean (1,184ms)  : 1116, 1253

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (279ms)  : 272, 285
    master - mean (278ms)  : 273, 283

    section Bailout
    This PR (7848) - mean (278ms)  : 274, 283
    master - mean (279ms)  : 273, 284

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (953ms)  : 911, 995
    master - mean (944ms)  : 901, 986

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (270ms)  : 265, 275
    master - mean (271ms)  : 266, 276

    section Bailout
    This PR (7848) - mean (271ms)  : 266, 276
    master - mean (272ms)  : 267, 277

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (931ms)  : 885, 977
    master - mean (933ms)  : 883, 983

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7848) - mean (270ms)  : 265, 274
    master - mean (269ms)  : 264, 275

    section Bailout
    This PR (7848) - mean (271ms)  : 266, 276
    master - mean (269ms)  : 265, 274

    section CallTarget+Inlining+NGEN
    This PR (7848) - mean (853ms)  : 835, 871
    master - mean (860ms)  : 841, 880

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants