Condividi tramite


Collect application statistics for services by using the profiler sampling method

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

This section describes the procedures and options for collecting performance statistics for Windows services using the sampling method from the command line.

Note

Enhanced security features in Windows 8 and Windows Server 2012 required significant changes in the way the Visual Studio profiler collects data on these platforms. UWP apps also require new collection techniques. See Performance Tools on Windows 8 and Windows Server 2012 applications.

Common tasks

Task Related Content
Attach the profiler to a .NET service - How to: Attach the profiler to a .NET service to collect application statistics
Add tier-interaction data - Collect tier interaction data
Attach the profiler to a C/C++ service - How to: Attach the profiler to a native service to collect application statistics

Profile Windows services

Task Related Content
Profile by using the instrumentation method - Collect detailed timing data using instrumentation
Profile .NET memory allocation and garbage collection - Collect .NET memory data
Profile resource contention and thread activity - Collect concurrency data

Profile by using the sampling method

Task Related Content
Profile stand-alone (client) applications - Collect application statistics using sampling
Profile ASP.NET Web applications - Collect application statistics using sampling

Analyze sampling data views and reports