Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>.NET Runtime MonitorNew to Visual Studio Code? Get it now.
.NET Runtime Monitor

.NET Runtime Monitor

JavierFrauca

|
58 installs
| (0) | Free
Real-time monitoring of CPU, memory, GC, and runtime counters during .NET debugging sessions. Professional dashboard with charts and statistics.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

.NET Runtime Monitor

.NET Runtime Monitor Logo

Professional real-time monitoring extension for .NET applications during debugging sessions in Visual Studio Code. Monitor CPU usage, memory consumption, garbage collection events, and runtime metrics with beautiful charts and statistics.

✨ Features

  • Real-time Monitoring: Live CPU, memory, GC heap, and thread metrics during debug sessions
  • Professional Dashboard: VSCode-native styling with dynamic charts and statistical insights
  • Automatic Attachment: Seamlessly attaches to your .NET debug session without configuration
  • GC Event Tracking: Visual indicators for garbage collection events on memory charts
  • Statistical Analysis: Min/Median/Max values for CPU, memory, and heap usage
  • Export Capability: Export all collected samples to CSV for further analysis
  • Adjustable Sampling: Configure sampling interval from 250ms to any value you need

📊 Dashboard

The Activity Bar view provides:

  • Current Metrics: CPU %, Working Set, GC Heap Size, Memory Pressure, Gen 0/1/2 collections, Exceptions/sec, Thread count
  • Historical Charts: CPU and Memory trend charts with gradient fills and current position indicators
  • GC Event Markers: Vertical lines on memory chart showing when garbage collections occur
  • Statistics Panel: Min/Median/Max values for all key metrics
  • Interactive Controls: Pause/Resume, Clear data, Export to CSV, Adjust sampling interval

🖥️ System Requirements

  • Windows only (uses self-contained win-x64 .NET helper executable)
  • Visual Studio Code 1.85.0 or higher
  • .NET applications to debug (any version supporting EventPipe)

🚀 Usage

  1. Install the extension from the VS Code Marketplace
  2. Open the ".NET Diagnostics" view in the Activity Bar (look for the monitoring icon)
  3. Start debugging any .NET application (F5 or Run → Start Debugging)
  4. The monitor automatically attaches and displays real-time metrics

🎨 Visual Design

Modern, professional interface featuring:

  • Dynamic Y-axis scales on charts
  • Gradient-filled trend visualizations
  • Vertical current-position indicator
  • GC event markers for memory insights
  • Compact 2-column metric layout
  • VSCode color theme integration

⚙️ Configuration

Available settings in VS Code preferences:

  • dotnetMonitor.sampleIntervalMs: Sampling interval in milliseconds (default: 1000, minimum: 250)
  • dotnetMonitor.enableDetailedGc: Enable detailed GC metrics (default: true)

📦 Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch mode for development
npm run watch

# Build Windows helper executable
npm run build:helper:win

# Package extension
vsce package

🐛 Testing

  1. Clone the repository
  2. Run npm install
  3. Run npm run compile
  4. Press F5 in VS Code to launch Extension Development Host
  5. Open the ".NET Diagnostics" Activity Bar view
  6. Start debugging a .NET application

📝 License

MIT License - see LICENSE file for details

👤 Author

Javier Frauca

  • GitHub: @JavierFrauca

🙏 Acknowledgments

Built with:

  • Microsoft.Diagnostics.NETCore.Client for EventPipe integration
  • VSCode Extension API
  • .NET EventCounters (System.Runtime provider)

Note: This extension currently supports Windows only due to the self-contained win-x64 helper executable. Cross-platform support may be added in future versions.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft