dotnet-trace-collect

Recommend .NET diagnostic tools and provide commands for collecting traces and dumps.

5.1k|377|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dotnet/skills --skill dotnet-trace-collect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-trace-collect
Source: https://github.com/dotnet/skills/tree/main/plugins/dotnet-diag/skills/dotnet-trace-collect
Command: npx skills add https://github.com/dotnet/skills --skill dotnet-trace-collect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers through capturing diagnostic artifacts to diagnose production .NET performance issues, helping them choose the right tools and collect necessary data.

Core Features & Use Cases

  • Tool Recommendation: Suggests appropriate diagnostic tools (PerfView, dotnet-trace, dotnet-monitor, perfcollect) based on the environment (OS, runtime, deployment).
  • Data Collection Guidance: Provides step-by-step instructions and commands for collecting traces and dumps.
  • Use Case: A developer is experiencing high CPU usage in a production .NET application running on Linux. This Skill will recommend using dotnet-trace collect-linux and provide the exact command to capture a trace with native call stacks.

Quick Start

Use the dotnet-trace-collect skill to capture a diagnostic trace for a .NET application experiencing high CPU on Linux.

Frequently Asked Questions about dotnet-trace-collect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I collect a diagnostic trace for a .NET application with high CPU usage?

To capture a .NET CPU trace, use diagnostic tools like dotnet-trace or PerfView to collect performance artifacts. This skill provides exact commands to collect traces and dumps for .NET production problems.

What is the best way to profile .NET performance issues in production?

Profiling .NET production performance requires capturing traces and dumps using environment-specific tools. This skill recommends appropriate diagnostic tools like dotnet-monitor or perfcollect based on your OS and deployment topology.

Can I use dotnet-trace to collect diagnostics on a Linux deployment?

Yes, you can use dotnet-trace to collect diagnostics on Linux deployments. This skill recommends specific commands like dotnet-trace collect-linux to capture traces with native call stacks for .NET applications running in Linux environments.

When should I use PerfView versus dotnet-monitor for .NET troubleshooting?

For .NET troubleshooting, the choice between PerfView and dotnet-monitor depends on your OS, runtime, and deployment topology. This skill evaluates your environment to recommend the correct tool for capturing necessary diagnostic data.

Do I need special setup to capture native call stacks in a .NET trace?

Capturing native call stacks in a .NET trace requires specific tool parameters based on your runtime environment. This skill provides detailed step-by-step commands for tools like dotnet-trace to ensure proper data collection.