본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.8k · #14577

dotnet-trace-collect

하는 일

이 스킬은 높은 CPU 사용량, 메모리 증가, 느린 요청, 과도한 가비지 수집 같은 운영 환경의 .NET 성능 문제에 맞는 진단 도구와 수집 명령을 추천합니다. 원인을 찾기 전에 데이터가 필요한 개발자와 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓운영 중인 .NET 앱에 높은 CPU, 메모리 증가, 느린 요청, 과도한 가비지 수집이 있을 때.
  • ✓Windows, Linux, 컨테이너 환경에 맞는 진단 도구를 고르고 싶을 때.
  • ✓실행 중인 앱에서 성능 데이터를 모으는 명령이 필요할 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/dotnet-trace-collect/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/dotnet-trace-collect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Kubernetes에서 돌아가는 제 .NET API가 피크 시간에 CPU를 많이 씁니다. 어떤 도구를 쓰고 어떤 명령으로 데이터를 모아야 할까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 증상과 런타임을 묻고, 그 환경에 맞는 도구를 추천하며, 실행하고 데이터를 수집하는 단계를 알려 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

.NET Trace Collect

This skill helps developers diagnose production performance issues by recommending the right diagnostic tools for their environment, guiding data collection, and suggesting analysis approaches. It does not analyze code for anti-patterns or perform the analysis itself.

When to Use

  • A developer needs to investigate a production performance issue (high CPU, memory leak, slow requests, excessive GC, networking errors, etc.)
  • Choosing the right diagnostic tool for a specific runtime, OS, or deployment topology
  • Setting up and running diagnostic tool commands for data collection
  • Understanding trade-offs between available tools (e.g. PerfView vs dotnet-trace)
  • Collecting diagnostics from containerized or Kubernetes workloads

When Not to Use

  • Reviewing source code for performance anti-patterns (use a code review skill instead)
  • Benchmarking during development (e.g. BenchmarkDotNet setup)
  • Analyzing collected trace or dump files (this skill recommends tools for analysis, but does not perform it)

Inputs

Input Required Description
Symptom Yes What the developer is observing (high CPU, memory growth, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.)
Runtime Yes .NET Framework or modern .NET (and version, especially whether .NET 10+)
OS Yes Windows or Linux
Deployment Yes Non-container, container, or Kubernetes
Admin privileges Recommended Whether the developer has admin/root access on the target machine
Repro characteristics Recommended Whether the issue is easy to reproduce or requires a long time to manifest

Workflow

Step 1: Understand the environment

Determine or ask the developer to clarify:

  1. Symptom: What they are observing (high CPU, memory leak, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.)
  2. Runtime: .NET Framework or modern .NET? If modern .NET, which version? (Especially whether .NET 10 or later.)
  3. OS: Windows or Linux?
  4. Deployment: Running directly on the host, in a container, or in Kubernetes?
  5. Admin privileges: Do they have admin/root access on the target machine or container?
  6. Repro characteristics: Does the issue reproduce quickly, or does it take a long time to manifest?
  7. Workload context: Determine or ask the user if you are running in the context of the workload (i.e., on the same machine or connected to the same environment where the issue is occurring). If so, you can run diagnostic commands directly on their behalf. If not, provide the commands as guidance for the user to run themselves.

Use this information to select the right tool in Step 2.

Step 2: Recommend diagnostic tools

Select tools based on the environment using the priority rules below. Once a tool is selected, load the corresponding reference file for detailed command-line usage.

Tool reference lookup

Environment Reference file(s)
Windows + modern .NET + admin references/perfview.md
Windows + modern .NET, no admin references/dotnet-trace-collect.md
Windows + .NET Framework references/perfview.md
Linux + .NET 10+ + root references/dotnet-trace-collect-linux.md
Linux + pre-.NET 10 references/dotnet-trace-collect.md
Linux + native stacks needed references/perfcollect.md
Container/K8s (console access) references/dotnet-trace-collect.md (or dotnet-trace-collect-linux.md)
Container/K8s (no console) references/dotnet-monitor.md

Quick decision matrix (first-pass triage)

Environment Preferred tool Fallback / Notes
Windows + modern .NET + admin PerfView If admin is unavailable, use dotnet-trace
Windows + .NET Framework + admin PerfView Without admin, there is no trace fallback; for hangs/memory leaks, provide dump commands directly (procdump -ma or Task Manager) since dump-collect does not support .NET Framework
Linux + .NET 10+ + root dotnet-trace collect-linux Use dotnet-trace if root or kernel prerequisites are not met
Linux + pre-.NET 10 dotnet-trace Add perfcollect when native stacks are needed (requires root)
Linux container/Kubernetes Console tools if in workload context; `
자주 묻는 질문

수집한 데이터를 분석하나요?

아니요. 분석 도구는 추천하지만 분석 자체는 하지 않습니다.

컨테이너에서도 되나요?

네. 컨테이너와 Kubernetes 워크로드를 다룹니다.

.NET Framework도 다루나요?

네. .NET Framework와 최신 .NET을 모두 다룹니다.

상세 정보

작성자의 원본 설명

Guide developers through capturing diagnostic artifacts to diagnose production .NET performance issues. Use when the user needs help choosing diagnostic tools, collecting performance data, or understanding tool trade-offs across different environments (Windows/Linux, .NET Framework/modern .NET, container/non-container).

repo: dotnet/skills

인기도

GitHub 스타
5.8k
순위
#14577
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬