Data Collector and Test Suite for CLR Profilers
This repository contains examples of data collectors and test suites
that show how to attach a CLR profiler to the .NET runtime (Core or
Framework) during a test session.
Test suites can be configured to use a data collector. The data collectors in this
repository set CLR environment variables so that a profiler is
attached to the runtime. The profiler can then instrument the tests and generate a
execution trace.
cs_dotnet_tracer.dll
).CoreSample
solution with dotnet build
or Visual Studio.CoreSample.Tests/collect.runsettings
.[Ignore]
directive from the TestEnv
case. This will ensure that the datadotnet test --settings collect.runsettings
in CoreSample.Tests
.trace.cst
and cs_dotnet_tracer.log
have been created in the output<OutputDir>
in collect.runsettings
.cs_dotnet_tracer.dll
).FrameworkSample
.FrameworkSample.Tests/collect.runsettings
.Test
→ Test Settings
→Select Test Settings File
).[Ignore]
directive from the TestEnv
case. This will ensure that the datatrace.cst
and cs_dotnet_tracer.log
have been created in the output<OutputDir>
in collect.runsettings
.