Hoppa till huvudinnehåll

Den här webbläsaren stöds inte längre.

Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.

Ladda ned Microsoft Edge Mer information om Internet Explorer och Microsoft Edge
Läs på engelska

Measure app performance in Visual Studio

Profiling and diagnostics tools help you diagnose memory and CPU usage and other application-level issues. With these tools, you can accumulate performance data while you run your application.

Get started

Tutorial

  • Get started analyzing CPU usage
  • Get started measuring memory usage
  • Try AI-assisted profiling

How-To Guide

  • Case study - Beginner's guide to optimizing code
  • Case study - Isolate a performance issue

Fundamentals

Overview

  • First look at profiling tools
  • Which tool should I use?
  • What is a profiler?
  • Ways to run profiling tools

Concept

  • Understanding performance collection methods

Performance tools

How-To Guide

  • CPU Usage
  • Memory Usage
  • .NET Object Allocation Tracking
  • Instrumentation
  • .NET Counters
  • Benchmark.NET
  • File I/O
  • Database
  • Events Viewer
  • .NET Async

Guides

How-To Guide

  • Optimize profiler settings
  • Measure performance from the command line
  • Use multiple profiler tools simultaneously
sv-se
Dina sekretessalternativ
  • Ansvarsfriskrivning för AI
  • Tidigare versioner
  • Blogg
  • Bidra
  • Sekretess
  • Konsumenthälsans integritet
  • Användningsvillkor
  • Varumärken
  • © Microsoft 2026