dotnet-trace-collect
Fungsinya
Skill ini merekomendasikan alat diagnostik dan perintah pengumpulan untuk masalah performa .NET di produksi, seperti CPU tinggi, memori yang terus bertambah, atau permintaan yang lambat. Skill ini untuk pengembang dan operator yang membutuhkan data sebelum bisa menemukan penyebabnya.
Kapan dipakai
- ✓Saat aplikasi .NET di produksi memakai CPU tinggi, memori terus naik, permintaan lambat, atau pengumpulan sampah berlebihan.
- ✓Saat Anda perlu memilih alat diagnostik untuk Windows, Linux, atau container.
- ✓Saat Anda ingin perintah untuk mengumpulkan data performa dari aplikasi yang sedang berjalan.
Link skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/dotnet-trace-collect/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“API .NET kami di Kubernetes memakai banyak CPU saat jam sibuk. Alat apa yang sebaiknya saya pakai dan perintah apa yang mengumpulkan datanya?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menanyakan gejala dan runtime, merekomendasikan alat yang sesuai dengan lingkungan tersebut, lalu memberikan langkah untuk menjalankannya dan mengumpulkan data.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
- 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.)
- Runtime: .NET Framework or modern .NET? If modern .NET, which version? (Especially whether .NET 10 or later.)
- OS: Windows or Linux?
- Deployment: Running directly on the host, in a container, or in Kubernetes?
- Admin privileges: Do they have admin/root access on the target machine or container?
- Repro characteristics: Does the issue reproduce quickly, or does it take a long time to manifest?
- 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; ` |
Pertanyaan umum
Apakah skill ini menganalisis data yang dikumpulkan?
Tidak. Skill ini merekomendasikan alat analisis, tetapi tidak melakukan analisisnya sendiri.
Apakah skill ini bisa dipakai di container?
Ya. Skill ini mencakup beban kerja container dan Kubernetes.
Apakah skill ini mencakup .NET Framework?
Ya. Skill ini mencakup .NET Framework dan .NET modern.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14577
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
create-custom-agent
5.8kMembantu agent Anda membuat file agen kustom VS Code dengan alatnya sendiri, instruksi, dan serah terima ke agent lain.
create-skill
5.8kMembantu agent Anda membuat skill agent baru dengan nama yang valid, deskripsi pemicu yang jelas, dan file SKILL.md yang mengikuti standar.
csharp-scripts
5.8kMembantu agent Anda menjalankan program C# kecil sebagai satu file dengan alat baris perintah .NET, tanpa membuat proyek lengkap.
dotnet-pinvoke
5.8kMembantu agent Anda memanggil pustaka native C atau C++ dari .NET dengan benar, mencakup tanda tangan, penanganan string, memori, dan safe handle.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.