mcaf-dotnet-profiling

Profile .NET applications with CLI tools for CPU, GC, and heap diagnostics.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-profiling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcaf-dotnet-profiling
Source: https://github.com/managedcode/MCPGateway/tree/main/.codex/skills/mcaf-dotnet-profiling
Command: npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-profiling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for in-depth performance and runtime analysis of .NET applications when GUI-only tooling is insufficient or unavailable, providing a CLI-driven approach to diagnostics.

Core Features & Use Cases

  • CPU Profiling: Identify performance bottlenecks and hotspots in .NET code.
  • Runtime Investigation: Monitor live counters, GC activity, allocation patterns, and exception rates.
  • Heap Analysis: Capture and analyze managed heap snapshots for memory leaks or bloat.
  • Startup Diagnostics: Investigate slow application startup times.
  • Use Case: A .NET service is experiencing high CPU usage. This Skill can be used to collect a trace, analyze the hotspots, and provide actionable insights to optimize the code.

Quick Start

Use the mcaf-dotnet-profiling skill to collect a CPU trace for the running .NET application.

Frequently Asked Questions about mcaf-dotnet-profiling

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

FAQPage Schema
How do I profile .NET application CPU usage from the command line?

To profile .NET CPU usage from the command line, this Skill collects a CPU trace to identify performance bottlenecks and hotspots. It provides actionable insights to optimize code by analyzing the captured runtime data directly via CLI tools.

Can I investigate memory leaks and GC allocation patterns in a running .NET service?

Yes, you can investigate memory leaks and GC allocation patterns in a running .NET service. This Skill captures and analyzes managed heap snapshots to detect memory bloat, while monitoring live counters for garbage collection activity and allocation rates.

How do I diagnose slow .NET application startup times without a GUI?

To diagnose slow .NET application startup times without a GUI, this Skill provides dedicated startup diagnostics via official CLI tools. It traces the startup sequence to pinpoint runtime delays, giving you actionable data when GUI-only tooling is unavailable or insufficient.

Does .NET runtime analysis with CLI tools support exception and contention tracing?

Yes, .NET runtime analysis with CLI tools supports exception and contention tracing. This Skill monitors live counters and traces runtime exceptions or resource contention, helping you investigate application instability and performance degradation in headless environments.

What is the best way to monitor live performance counters for .NET applications?

The best way to monitor live performance counters for .NET applications is using this Skill's CLI-driven diagnostics. It tracks live runtime counters for CPU, garbage collection, and exception rates, providing immediate visibility into application behavior without requiring a GUI.

Can I use custom repository commands for .NET diagnostics?

Yes, you can use custom repository commands for .NET diagnostics. This Skill supports repo-specific AGENTS.md commands, allowing you to integrate runtime analysis and compatibility checks directly into your project's defined workflows.