Performance Rules Reference

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The performance rules of the Profiling Tools provide additional warnings and information about the performance of your application. Performance rules analyze data in a profiling run that is collected from sources such as Windows and processor performance counters. Rule messages appear in the Error Output window of the Visual Studio integrated development environment. Messages are listed with one of the following rule levels:

Category Description
Error Few rules generate Error messages because most performance problems are not outright errors. An Error message can indicate a failure to collect profiling data.
Warning Warnings indicate an area of your application that can potentially be a source of performance problems or that might benefit from optimizations.
Information Information messages indicate that either the analysis of a rule condition did not reach the threshold to generate an Error message, or that the information in the message is useful but does not reflect a performance problem.

In This Section

Performance Rules by ID

The Profiling Tools performance rules are organized in four categories:

Category Description
.NET Framework Usage Performance Rules Rules that help you use the .NET Framework efficiently.
Memory and Paging Performance Rules Rules that analyze the managed memory and paging behavior of your application.
Profiling Tools Usage Rules Rules that help you use the Profiling Tools efficiently.
Resource Monitoring Performance Rules Information messages about processor and memory utilization in a profiling run.