Langkau ke kandungan utama

Pelayar ini tidak lagi disokong.

Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.

Muat turun Microsoft Edge Maklumat lanjut tentang Internet Explorer dan Microsoft Edge
Dibaca dalam bahasa Inggeris Edit

Kongsi melalui

Facebook x.com LinkedIn E-mel

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
ms-my
Pilihan Privasi Anda
  • Penafian AI
  • Versi Sebelumnya
  • Blog
  • Menyumbang
  • Privasi
  • Privasi Kesihatan Pengguna
  • Terma Penggunaan
  • Cap dagang
  • © Microsoft 2026