[Profiler] Add guard-rails when creating a profile#8579
Conversation
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (8579) and master. ✅ No regressions detected - check the details below Full Metrics ComparisonFakeDbCommand
HttpMessageHandler
Comparison explanationExecution-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:
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 chartsFakeDbCommand (.NET Framework 4.8)gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8579) - mean (73ms) : 70, 75
master - mean (75ms) : 70, 80
section Bailout
This PR (8579) - mean (78ms) : 76, 80
master - mean (79ms) : 75, 83
section CallTarget+Inlining+NGEN
This PR (8579) - mean (1,137ms) : 1072, 1202
master - mean (1,129ms) : 1075, 1183
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 (8579) - mean (116ms) : 110, 122
master - mean (117ms) : 110, 124
section Bailout
This PR (8579) - mean (120ms) : 114, 125
master - mean (115ms) : 112, 118
section CallTarget+Inlining+NGEN
This PR (8579) - mean (812ms) : 785, 838
master - mean (808ms) : 777, 839
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8579) - mean (101ms) : 97, 104
master - mean (104ms) : 99, 109
section Bailout
This PR (8579) - mean (105ms) : 99, 111
master - mean (102ms) : 98, 106
section CallTarget+Inlining+NGEN
This PR (8579) - mean (956ms) : 910, 1003
master - mean (951ms) : 910, 991
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8579) - mean (101ms) : 97, 105
master - mean (103ms) : 97, 109
section Bailout
This PR (8579) - mean (102ms) : 99, 104
master - mean (104ms) : 99, 109
section CallTarget+Inlining+NGEN
This PR (8579) - mean (838ms) : 778, 898
master - mean (834ms) : 791, 876
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 (8579) - mean (204ms) : 195, 213
master - mean (204ms) : 192, 217
section Bailout
This PR (8579) - mean (211ms) : 197, 224
master - mean (208ms) : 199, 217
section CallTarget+Inlining+NGEN
This PR (8579) - mean (1,265ms) : 1205, 1325
master - mean (1,266ms) : 1223, 1309
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 (8579) - mean (297ms) : 283, 311
master - mean (298ms) : 282, 315
section Bailout
This PR (8579) - mean (298ms) : 283, 312
master - mean (299ms) : 283, 315
section CallTarget+Inlining+NGEN
This PR (8579) - mean (1,003ms) : 980, 1027
master - mean (1,010ms) : 987, 1033
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8579) - mean (292ms) : 280, 304
master - mean (290ms) : 276, 304
section Bailout
This PR (8579) - mean (294ms) : 282, 306
master - mean (292ms) : 277, 307
section CallTarget+Inlining+NGEN
This PR (8579) - mean (1,175ms) : 1139, 1211
master - mean (1,171ms) : 1132, 1210
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8579) - mean (290ms) : 279, 302
master - mean (289ms) : 274, 305
section Bailout
This PR (8579) - mean (291ms) : 278, 304
master - mean (289ms) : 274, 305
section CallTarget+Inlining+NGEN
This PR (8579) - mean (1,086ms) : 982, 1191
master - mean (1,065ms) : 988, 1141
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BenchmarksBenchmark execution time: 2026-05-07 15:19:01 Comparing candidate commit a667c15 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 60 known flaky benchmarks, 27 flaky benchmarks without significant changes.
|
Summary of changes
Add guards to prevent crashing if failed at creating a FFI profile
Reason for change
This is to make the code safer.
Implementation details
Profile::Createfactory method and private the ctorProfileinstanceTest coverage
Other details