The Wayback Machine - http://web.archive.org/web/20201010161121/https://github.com/cryptosense/dotnet-collector
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

.NET Data Collection 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.

How It Works

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.

Instructions

.NET Core

  • Get a profiler DLL (cs_dotnet_tracer.dll).
  • Build the CoreSample solution with dotnet build or Visual Studio.
  • Adjust the paths in CoreSample.Tests/collect.runsettings.
  • Remove the [Ignore] directive from the TestEnv case. This will ensure that the data collector was found and initialized by the test runner. Processor Architecture).
  • Run the tests with dotnet test --settings collect.runsettings in CoreSample.Tests.
  • Check that trace.cst and cs_dotnet_tracer.log have been created in the output directory (specified by <OutputDir> in collect.runsettings.

.NET Framework

  • Get a profiler DLL (cs_dotnet_tracer.dll).
  • Build the Visual Studio solution FrameworkSample.
  • Adjust the paths in FrameworkSample.Tests/collect.runsettings.
  • Configure Visual Studio to use the settings (TestTest SettingsSelect Test Settings File).
  • Remove the [Ignore] directive from the TestEnv case. This will ensure that the data collector was found and initialized by the test runner.
  • Set the default processor architecture to X64 (TestTest SettingsDefault Processor Architecture).
  • Run the tests.
  • Check that trace.cst and cs_dotnet_tracer.log have been created in the output directory (specified by <OutputDir> in collect.runsettings.

About

Data Collector and Test Suite for CLR Profilers

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.