-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Profiler] CPU profiler: Check if the stackwalk lock was not already taken #6198
[Profiler] CPU profiler: Check if the stackwalk lock was not already taken #6198
Conversation
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 (6198) - mean (70ms) : 66, 74
. : milestone, 70,
master - mean (70ms) : 68, 71
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (1,114ms) : 1095, 1133
. : milestone, 1114,
master - mean (1,116ms) : 1099, 1133
. : milestone, 1116,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6198) - mean (108ms) : 105, 111
. : milestone, 108,
master - mean (108ms) : 106, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (778ms) : 765, 791
. : milestone, 778,
master - mean (775ms) : 762, 787
. : milestone, 775,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6198) - mean (92ms) : 90, 94
. : milestone, 92,
master - mean (91ms) : 90, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (733ms) : 719, 747
. : milestone, 733,
master - mean (731ms) : 716, 746
. : milestone, 731,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6198) - mean (190ms) : 187, 192
. : milestone, 190,
master - mean (191ms) : 185, 196
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (1,228ms) : 1203, 1253
. : milestone, 1228,
master - mean (1,229ms) : 1208, 1250
. : milestone, 1229,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6198) - mean (275ms) : 271, 280
. : milestone, 275,
master - mean (275ms) : 270, 280
. : milestone, 275,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (957ms) : 939, 974
. : milestone, 957,
master - mean (949ms) : 934, 964
. : milestone, 949,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6198) - mean (264ms) : 260, 267
. : milestone, 264,
master - mean (264ms) : 260, 268
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6198) - mean (934ms) : 915, 953
. : milestone, 934,
master - mean (935ms) : 913, 957
. : milestone, 935,
|
Datadog ReportBranch report: ❌ 1 Failed (1 Known Flaky), 371274 Passed, 2410 Skipped, 16h 35m 8.75s Total Time ❌ Failed Tests (1)
|
Benchmarks Report for tracer 🐌Benchmarks for #6198 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 ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.47 KB | 41.74 KB | 269 B | 0.65% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 560μs | 3.03μs | 16μs | 0.561 | 0 | 0 | 41.47 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 698μs | 3.9μs | 24μs | 0.334 | 0 | 0 | 41.77 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 864μs | 3.06μs | 11.9μs | 8.33 | 2.5 | 0.417 | 53.33 KB |
#6198 | WriteAndFlushEnrichedTraces |
net6.0 | 565μs | 2.88μs | 12.9μs | 0.548 | 0 | 0 | 41.74 KB |
#6198 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 702μs | 3.74μs | 20.5μs | 0.338 | 0 | 0 | 41.65 KB |
#6198 | WriteAndFlushEnrichedTraces |
net472 | 853μs | 3.34μs | 12.9μs | 8.08 | 2.55 | 0.425 | 53.27 KB |
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteNonQuery |
net6.0 | 1.33μs | 0.978ns | 3.66ns | 0.0146 | 0 | 0 | 1.02 KB |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.79μs | 1.56ns | 6.04ns | 0.014 | 0 | 0 | 1.02 KB |
master | ExecuteNonQuery |
net472 | 2.17μs | 1.26ns | 4.73ns | 0.156 | 0.0011 | 0 | 987 B |
#6198 | ExecuteNonQuery |
net6.0 | 1.23μs | 1.03ns | 3.87ns | 0.0142 | 0 | 0 | 1.02 KB |
#6198 | ExecuteNonQuery |
netcoreapp3.1 | 1.73μs | 1.34ns | 5.19ns | 0.0139 | 0 | 0 | 1.02 KB |
#6198 | ExecuteNonQuery |
net472 | 2.05μs | 2.35ns | 8.81ns | 0.156 | 0.00103 | 0 | 987 B |
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | CallElasticsearch |
net6.0 | 1.26μs | 0.819ns | 3.17ns | 0.0139 | 0 | 0 | 976 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.55μs | 0.657ns | 2.55ns | 0.0125 | 0 | 0 | 976 B |
master | CallElasticsearch |
net472 | 2.44μs | 1.37ns | 5.12ns | 0.157 | 0 | 0 | 995 B |
master | CallElasticsearchAsync |
net6.0 | 1.36μs | 0.645ns | 2.5ns | 0.0128 | 0 | 0 | 952 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.63μs | 0.758ns | 2.73ns | 0.0139 | 0 | 0 | 1.02 KB |
master | CallElasticsearchAsync |
net472 | 2.68μs | 1.5ns | 5.81ns | 0.166 | 0 | 0 | 1.05 KB |
#6198 | CallElasticsearch |
net6.0 | 1.23μs | 2.1ns | 8.13ns | 0.0135 | 0 | 0 | 976 B |
#6198 | CallElasticsearch |
netcoreapp3.1 | 1.52μs | 0.689ns | 2.67ns | 0.0129 | 0 | 0 | 976 B |
#6198 | CallElasticsearch |
net472 | 2.6μs | 2.14ns | 8.3ns | 0.157 | 0 | 0 | 995 B |
#6198 | CallElasticsearchAsync |
net6.0 | 1.25μs | 0.545ns | 2.11ns | 0.0131 | 0 | 0 | 952 B |
#6198 | CallElasticsearchAsync |
netcoreapp3.1 | 1.62μs | 2.76ns | 10.3ns | 0.0138 | 0 | 0 | 1.02 KB |
#6198 | CallElasticsearchAsync |
net472 | 2.68μs | 1.25ns | 4.84ns | 0.166 | 0 | 0 | 1.05 KB |
Benchmarks.Trace.GraphQLBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6198
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net6.0
1.142
1,364.71
1,195.35
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net6.0 | 1.142 | 1,364.71 | 1,195.35 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.36μs | 0.87ns | 3.26ns | 0.0131 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.67μs | 0.923ns | 3.45ns | 0.0133 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.85μs | 1.08ns | 4.03ns | 0.145 | 0 | 0 | 915 B |
#6198 | ExecuteAsync |
net6.0 | 1.2μs | 0.957ns | 3.58ns | 0.0134 | 0 | 0 | 952 B |
#6198 | ExecuteAsync |
netcoreapp3.1 | 1.56μs | 0.449ns | 1.62ns | 0.0125 | 0 | 0 | 952 B |
#6198 | ExecuteAsync |
net472 | 1.89μs | 0.574ns | 2.07ns | 0.145 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendAsync |
net6.0 | 4.42μs | 2.82ns | 10.9ns | 0.033 | 0 | 0 | 2.31 KB |
master | SendAsync |
netcoreapp3.1 | 5.42μs | 2.45ns | 9.18ns | 0.0379 | 0 | 0 | 2.85 KB |
master | SendAsync |
net472 | 7.46μs | 5.19ns | 20.1ns | 0.493 | 0 | 0 | 3.12 KB |
#6198 | SendAsync |
net6.0 | 4.51μs | 1.38ns | 5.34ns | 0.0314 | 0 | 0 | 2.31 KB |
#6198 | SendAsync |
netcoreapp3.1 | 5.31μs | 2.67ns | 9.64ns | 0.0372 | 0 | 0 | 2.85 KB |
#6198 | SendAsync |
net472 | 7.5μs | 2.41ns | 9.02ns | 0.495 | 0 | 0 | 3.12 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.46μs | 0.671ns | 2.51ns | 0.0233 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.17μs | 0.663ns | 2.39ns | 0.0227 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.69μs | 1.6ns | 6.21ns | 0.249 | 0 | 0 | 1.57 KB |
#6198 | EnrichedLog |
net6.0 | 1.46μs | 0.716ns | 2.77ns | 0.0229 | 0 | 0 | 1.64 KB |
#6198 | EnrichedLog |
netcoreapp3.1 | 2.23μs | 1.16ns | 4.48ns | 0.0223 | 0 | 0 | 1.64 KB |
#6198 | EnrichedLog |
net472 | 2.58μs | 1.49ns | 5.56ns | 0.249 | 0 | 0 | 1.57 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 119μs | 237ns | 917ns | 0.0594 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 123μs | 335ns | 1.3μs | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 154μs | 150ns | 581ns | 0.691 | 0.23 | 0 | 4.46 KB |
#6198 | EnrichedLog |
net6.0 | 117μs | 116ns | 449ns | 0 | 0 | 0 | 4.28 KB |
#6198 | EnrichedLog |
netcoreapp3.1 | 120μs | 69.8ns | 242ns | 0.0596 | 0 | 0 | 4.28 KB |
#6198 | EnrichedLog |
net472 | 152μs | 104ns | 403ns | 0.682 | 0.227 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 3.04μs | 0.741ns | 2.77ns | 0.0305 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.05μs | 2.19ns | 7.88ns | 0.0287 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.82μs | 1.67ns | 6.26ns | 0.32 | 0 | 0 | 2.02 KB |
#6198 | EnrichedLog |
net6.0 | 2.91μs | 0.808ns | 3.13ns | 0.0305 | 0 | 0 | 2.2 KB |
#6198 | EnrichedLog |
netcoreapp3.1 | 4.12μs | 1.79ns | 6.91ns | 0.029 | 0 | 0 | 2.2 KB |
#6198 | EnrichedLog |
net472 | 4.67μs | 2ns | 7.73ns | 0.319 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.28μs | 1.23ns | 4.78ns | 0.0161 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.85μs | 0.78ns | 3.02ns | 0.0157 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.13μs | 2.09ns | 7.22ns | 0.184 | 0 | 0 | 1.16 KB |
#6198 | SendReceive |
net6.0 | 1.34μs | 0.652ns | 2.53ns | 0.0161 | 0 | 0 | 1.14 KB |
#6198 | SendReceive |
netcoreapp3.1 | 1.69μs | 1.75ns | 6.79ns | 0.0153 | 0 | 0 | 1.14 KB |
#6198 | SendReceive |
net472 | 2.09μs | 0.699ns | 2.52ns | 0.183 | 0 | 0 | 1.16 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.67μs | 0.987ns | 3.69ns | 0.0227 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.68μs | 2.71ns | 10.5ns | 0.0221 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.35μs | 1.81ns | 6.78ns | 0.322 | 0 | 0 | 2.04 KB |
#6198 | EnrichedLog |
net6.0 | 2.87μs | 0.76ns | 2.84ns | 0.023 | 0 | 0 | 1.6 KB |
#6198 | EnrichedLog |
netcoreapp3.1 | 4.04μs | 2.9ns | 11.2ns | 0.0223 | 0 | 0 | 1.65 KB |
#6198 | EnrichedLog |
net472 | 4.59μs | 2.65ns | 10.2ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6198
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1
1.218
668.85
549.30
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.218 | 668.85 | 549.30 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 403ns | 0.158ns | 0.592ns | 0.0081 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 664ns | 2.96ns | 11.5ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 718ns | 0.792ns | 3.07ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 475ns | 0.58ns | 2.25ns | 0.00968 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 790ns | 0.64ns | 2.48ns | 0.00911 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 902ns | 0.888ns | 3.44ns | 0.104 | 0 | 0 | 658 B |
#6198 | StartFinishSpan |
net6.0 | 399ns | 0.362ns | 1.35ns | 0.00802 | 0 | 0 | 576 B |
#6198 | StartFinishSpan |
netcoreapp3.1 | 549ns | 0.325ns | 1.22ns | 0.00769 | 0 | 0 | 576 B |
#6198 | StartFinishSpan |
net472 | 755ns | 0.794ns | 3.07ns | 0.0917 | 0 | 0 | 578 B |
#6198 | StartFinishScope |
net6.0 | 480ns | 0.34ns | 1.32ns | 0.00982 | 0 | 0 | 696 B |
#6198 | StartFinishScope |
netcoreapp3.1 | 766ns | 0.884ns | 3.42ns | 0.00961 | 0 | 0 | 696 B |
#6198 | StartFinishScope |
net472 | 854ns | 0.569ns | 2.2ns | 0.104 | 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 | 667ns | 0.484ns | 1.87ns | 0.00964 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 933ns | 3.18ns | 12.3ns | 0.0095 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.15μs | 0.798ns | 3.09ns | 0.104 | 0 | 0 | 658 B |
#6198 | RunOnMethodBegin |
net6.0 | 643ns | 0.68ns | 2.63ns | 0.00969 | 0 | 0 | 696 B |
#6198 | RunOnMethodBegin |
netcoreapp3.1 | 928ns | 0.924ns | 3.58ns | 0.00936 | 0 | 0 | 696 B |
#6198 | RunOnMethodBegin |
net472 | 1.14μs | 1.1ns | 4.25ns | 0.104 | 0 | 0 | 658 B |
Throughput/Crank Report ⚡Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6198) (11.241M) : 0, 11241441
master (11.132M) : 0, 11131684
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6198) (7.261M) : 0, 7260875
master (7.202M) : 0, 7202253
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.442M) : 0, 7442024
section Manual
master (10.983M) : 0, 10982660
section Manual + Automatic
This PR (6198) (6.725M) : 0, 6724811
master (6.645M) : 0, 6644995
section DD_TRACE_ENABLED=0
master (10.234M) : 0, 10233674
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6198) (9.670M) : 0, 9670015
master (9.505M) : 0, 9505311
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6198) (6.224M) : 0, 6223645
master (6.463M) : 0, 6462996
section Trace stats
master (6.709M) : 0, 6709463
section Manual
master (9.346M) : 0, 9345687
section Manual + Automatic
This PR (6198) (5.986M) : 0, 5985857
master (5.903M) : 0, 5902776
section DD_TRACE_ENABLED=0
master (8.956M) : 0, 8956040
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6198) (9.658M) : 0, 9657924
master (9.708M) : 0, 9708001
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6198) (6.159M) : 0, 6158726
master (6.407M) : 0, 6407146
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.103M) : 0, 7102656
section Manual
master (9.685M) : 0, 9685116
section Manual + Automatic
This PR (6198) (5.782M) : 0, 5782289
master (6.028M) : 0, 6027641
section DD_TRACE_ENABLED=0
master (9.212M) : 0, 9211970
|
6de1063
to
f798d41
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
profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux/TimerCreateCpuProfiler.cpp
Outdated
Show resolved
Hide resolved
1b7f238
to
4948785
Compare
b083800
to
9ccc080
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
a0b2d17
to
94b53ae
Compare
94b53ae
to
4c09216
Compare
4c09216
to
aaae6ad
Compare
Summary of changes
Check if the stack walk lock was not taken before unwinding in the
timer_create
-based CPU profiler.Reason for change
We got situation where a signal-based profiler (Walltime/CPU) interrupted a non-signal-based profiler (ex: Exception, Allocation, Contention...) while unwinding the callstack. This situation leads to a crash.
Implementation details
Test coverage
Added new tests.
Other details
Another PR is in progress to have metrics around discarded samples due to those checks.