What problem does it solve?
Provides CLI-first guidance to diagnose and optimize C#/.NET performance problems such as high allocation rates, GC pressure, heap growth, CPU hotspots, blocking/hangs, boxing overhead, and LINQ-related costs without relying on GUI tools.
Core Features & Use Cases
- Live triage: Use dotnet-counters to detect allocation rates, GC activity, and CPU trends in a running process.
- Hot-path and stack inspection: Capture dotnet-trace for sampled call paths and dotnet-stack for immediate stack snapshots when a process appears stuck.
- Heap and postmortem analysis: Collect dotnet-gcdump for heap composition and dotnet-dump for SOS-backed inspection when deeper type-level or postmortem evidence is required.
- Code guidance and microbenchmarks: Recommend analyzer-backed code patterns and use BenchmarkDotNet for reproducible microbenchmarks when a local change is proposed.
Quick Start
Run dotnet-counters to triage live counters for the target PID, collect a dotnet-trace to find CPU or allocation hot paths, and capture a dotnet-gcdump or dotnet-dump when you need heap or postmortem evidence.