-
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] Improve .NET Framework profiling support #5867
Conversation
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.
What are the changes related to GC ? (I read it in the description)
profiler/src/ProfilerEngine/Datadog.Profiler.Native/ContentionProvider.cpp
Outdated
Show resolved
Hide resolved
Datadog ReportBranch report: ❌ 1 Failed (0 Known Flaky), 344817 Passed, 2053 Skipped, 15h 43m 38.75s Total Time ❌ Failed Tests (1)
|
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). |
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 (5867) (11.558M) : 0, 11557672
master (11.989M) : 0, 11988922
benchmarks/2.9.0 (11.513M) : 0, 11512780
section Automatic
This PR (5867) (7.709M) : crit ,0, 7708941
master (8.129M) : 0, 8128534
benchmarks/2.9.0 (8.207M) : 0, 8206882
section Trace stats
master (8.363M) : 0, 8362615
section Manual
master (12.022M) : 0, 12022316
section Manual + Automatic
This PR (5867) (7.155M) : 0, 7155247
master (7.524M) : 0, 7524228
section DD_TRACE_ENABLED=0
master (11.062M) : 0, 11062172
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5867) (9.466M) : 0, 9466191
benchmarks/2.9.0 (9.495M) : 0, 9494663
section Automatic
This PR (5867) (6.637M) : 0, 6636570
section Manual + Automatic
This PR (5867) (6.189M) : 0, 6188918
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5867) (10.352M) : 0, 10352445
section Automatic
This PR (5867) (5.988M) : 0, 5988210
section Manual + Automatic
This PR (5867) (6.491M) : 0, 6490788
|
Benchmarks Report for tracer 🐌Benchmarks for #5867 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.StartFinishSpan‑netcoreapp3.1 | 1.134 | 567.02 | 643.28 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 401ns | 0.224ns | 0.868ns | 0.00809 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 567ns | 0.387ns | 1.5ns | 0.0079 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 598ns | 0.647ns | 2.5ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 547ns | 0.227ns | 0.878ns | 0.00964 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 747ns | 0.654ns | 2.53ns | 0.0093 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 889ns | 0.598ns | 2.32ns | 0.104 | 0 | 0 | 658 B |
#5867 | StartFinishSpan |
net6.0 | 405ns | 0.818ns | 3.17ns | 0.00814 | 0 | 0 | 576 B |
#5867 | StartFinishSpan |
netcoreapp3.1 | 643ns | 0.518ns | 2ns | 0.00768 | 0 | 0 | 576 B |
#5867 | StartFinishSpan |
net472 | 609ns | 0.304ns | 1.14ns | 0.0917 | 0 | 0 | 578 B |
#5867 | StartFinishScope |
net6.0 | 546ns | 0.661ns | 2.56ns | 0.00969 | 0 | 0 | 696 B |
#5867 | StartFinishScope |
netcoreapp3.1 | 791ns | 1.1ns | 4.26ns | 0.00951 | 0 | 0 | 696 B |
#5867 | StartFinishScope |
net472 | 882ns | 0.552ns | 2.14ns | 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 | 652ns | 0.672ns | 2.6ns | 0.00986 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 929ns | 0.986ns | 3.82ns | 0.00924 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.06μs | 0.959ns | 3.71ns | 0.104 | 0 | 0 | 658 B |
#5867 | RunOnMethodBegin |
net6.0 | 723ns | 1.68ns | 6.49ns | 0.0099 | 0 | 0 | 696 B |
#5867 | RunOnMethodBegin |
netcoreapp3.1 | 985ns | 0.999ns | 3.74ns | 0.00928 | 0 | 0 | 696 B |
#5867 | RunOnMethodBegin |
net472 | 1.04μs | 0.728ns | 2.82ns | 0.104 | 0 | 0 | 658 B |
profiler/src/ProfilerEngine/Datadog.Profiler.Native.Windows/EtwEventsManager.cpp
Show resolved
Hide resolved
the timestamp fix works for both (gc events were recorded by with the wrong timestamp did not appear in the timeline) |
Summary of changes
Reason for change
Improve .NET Framework profiling support
Implementation details
Test coverage
Other details