मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)5.8k · #14577

dotnet-trace-collect

यह क्या करती है

यह स्किल production .NET प्रदर्शन समस्याओं, जैसे उच्च CPU, memory बढ़ना या धीमे requests, के लिए diagnostic टूल और collection कमांड सुझाती है। यह उन डेवलपर और operators के लिए है जिन्हें कारण ढूँढने से पहले डेटा चाहिए।

कब इस्तेमाल करें

  • ✓जब production में .NET ऐप का CPU ज़्यादा हो, memory बढ़ रही हो, requests धीमे हों या garbage collection बहुत हो।
  • ✓जब आपको Windows, Linux या container के लिए diagnostic टूल चुनना हो।
  • ✓जब आप चल रहे ऐप से प्रदर्शन डेटा लेने के कमांड चाहें।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/dotnet-trace-collect/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Kubernetes में चल रहा मेरा .NET API चरम समय पर बहुत CPU लेता है। मुझे कौन सा टूल इस्तेमाल करना चाहिए और डेटा लेने का कमांड क्या है?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट लक्षण और runtime के बारे में पूछता है, उस माहौल के अनुकूल टूल सुझाता है, और उसे चलाने व डेटा लेने के चरण देता है।

तकनीकी सामग्री (मूल 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; `
अक्सर पूछे जाने वाले सवाल

क्या यह लिए गए डेटा का विश्लेषण करती है?

नहीं। यह विश्लेषण के लिए टूल सुझाती है, पर खुद विश्लेषण नहीं करती।

क्या यह containers में काम करती है?

हाँ। यह container और Kubernetes workloads कवर करती है।

क्या यह .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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills