{"id":18552952,"url":"https://github.com/cryptosense/dotnet-collector","last_synced_at":"2026-04-27T11:31:40.316Z","repository":{"id":72197526,"uuid":"153808509","full_name":"cryptosense/dotnet-collector","owner":"cryptosense","description":"Data Collector and Test Suite for CLR Profilers","archived":false,"fork":false,"pushed_at":"2024-02-16T16:14:39.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-15T11:32:17.039Z","etag":null,"topics":["clr-profiling","data-collector","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptosense.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-19T16:01:24.000Z","updated_at":"2024-02-16T16:13:53.000Z","dependencies_parsed_at":"2024-12-26T08:41:26.610Z","dependency_job_id":"1b4049cf-e242-4318-bfb9-a672c51a2e3d","html_url":"https://github.com/cryptosense/dotnet-collector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptosense/dotnet-collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdotnet-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdotnet-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdotnet-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdotnet-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptosense","download_url":"https://codeload.github.com/cryptosense/dotnet-collector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdotnet-collector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clr-profiling","data-collector","dotnet"],"created_at":"2024-11-06T21:15:37.368Z","updated_at":"2026-04-27T11:31:40.296Z","avatar_url":"https://github.com/cryptosense.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Data Collection for CLR Profilers\n\nThis repository contains examples of [data collectors][data-collector] and test suites\nthat show how to attach a [CLR profiler][clr-profiling] to the .NET runtime (Core or\nFramework) during a test session.\n\n## How It Works\n\nTest suites can be configured to use a data collector. The data collectors in this\nrepository set [CLR environment variables][clr-profiling-config] so that a profiler is\nattached to the runtime. The profiler can then instrument the tests and generate a\nexecution trace.\n\n## Instructions\n\n### .NET Core\n\n- Get a profiler DLL (`cs_dotnet_tracer.dll`).\n- Build the `CoreSample` solution with `dotnet build` or Visual Studio.\n- Adjust the paths in `CoreSample.Tests/collect.runsettings`.\n- Remove the `[Ignore]` directive from the `TestEnv` case. This will ensure that the data\n  collector was found and initialized by the test runner. Processor Architecture).\n- Run the tests with `dotnet test --settings collect.runsettings` in `CoreSample.Tests`.\n- Check that `trace.cst` and `cs_dotnet_tracer.log` have been created in the output\n  directory (specified by `\u003cOutputDir\u003e` in `collect.runsettings`.\n\n### .NET Framework\n\n- Get a profiler DLL (`cs_dotnet_tracer.dll`).\n- Build the Visual Studio solution `FrameworkSample`.\n- Adjust the paths in `FrameworkSample.Tests/collect.runsettings`.\n- Configure Visual Studio to use the settings (`Test` → `Test Settings` →\n  `Select Test Settings File`).\n- Remove the `[Ignore]` directive from the `TestEnv` case. This will ensure that the data\n  collector was found and initialized by the test runner.\n- Run the tests.\n- Check that `trace.cst` and `cs_dotnet_tracer.log` have been created in the output\n  directory (specified by `\u003cOutputDir\u003e` in `collect.runsettings`.\n\n[clr-profiling-config]:\n  https://github.com/microsoft/CLRInstrumentationEngine/blob/e4da6360219e5bb15a618e4b2c538e2315d3566d/docs/environment_variables.md\n[clr-profiling]:\n  https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/profiling/profiling-overview\n[data-collector]:\n  https://github.com/microsoft/vstest/blob/main/docs/extensions/datacollector.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fdotnet-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptosense%2Fdotnet-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fdotnet-collector/lists"}