Поделиться через


Control data collection

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

Visual Studio Profiling Tools enable you to control when profiling data is collected during a performance session and to specify the functions that are profiled. This section describes how to start and stop data collection from the Performance Explorer and Data Collection Control windows and how to limit the objects for which profiling data is collected.

Common tasks

Task Related Content
Start and stop profiling: You can start to profile an application when the application starts, or you can attach the profiler to a process that is already running. When the target application is running, you can pause and resume data collection. You end a profiling session by closing the target application or detaching the profiler from a running process. - How to: Start and end performance data collection
- How to: Attach and detach performance tools to running processes
- How to: Pause and resume performance data collection
Configure instrumentation profiling to limit the collected data: You can use performance session configuration properties to limit the data that is collected in profiling runs that use the instrumentation method. You can include or exclude specific .dll files, namespaces, classes, and functions. You can also exclude functions that do not meet a size threshold that you specify. - How to: Limit instrumentation to specific DLLs
- How to: Limit instrumentation to specific functions
- How to: Exclude or include short functions from instrumentation

See also