跳至主要内容

此浏览器不再受支持。

请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。

下载 Microsoft Edge 有关 Internet Explorer 和 Microsoft Edge 的详细信息
使用英语阅读

通过

Facebook x.com 共享 LinkedIn 电子邮件

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
zh-cn
你的隐私选择
  • AI 免责声明
  • 早期版本
  • 博客
  • 参与
  • 隐私
  • 使用条款
  • 商标
  • © Microsoft 2025