Supercharged profiling: Finding performance bugs with agents | DEM300

Nik Karpinsky demonstrates how to diagnose and fix modern performance issues using Visual Studio’s profiling and diagnostics tools, with GitHub Copilot and AI-powered agents helping generate, refine, and explain benchmark and profiling results for faster root-cause analysis.

Overview

Modern performance problems can be difficult to diagnose due to factors like distributed systems, async code, and large volumes of data. This Build 2026 demo session focuses on using Visual Studio’s profiler and diagnostics experience together with AI-powered assistance (including agent-style workflows) to:

What the session covers

Using Visual Studio Profiler to identify performance issues

Creating benchmarks for accurate performance testing

Working with a sample repo in Visual Studio

Isolating enumeration performance with an in-memory CSV setup

Reviewing and refining Copilot-generated benchmark code

Capturing and analyzing profiling traces

Measuring impact and continuing optimization

Copilot as a learning tool

Resources