Partager via


VSPerfASPNetCmd

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 VSPerfASPNetCmd.exe command-line tool allows you to profile ASP.Net web sites without requiring that you set environment variables or restart your computer. Use VSPerfASPNetCmd.exe instead of VSPerfCmd when you are profiling ASP.NET websites and you do not need the additional functionality provided by VSPerfCmd. For more information about VSPerfASPNetCmd, see Rapid web site profiling with VSPerfASPNETCmd. VSPerfASPNetCmd is the preferred command line tool to use when you are using the standalone profiler to profile an ASP.NET web site.

Syntax

vsperfaspnetcmd [/Options] Website

Options

Option Description
/Sample or /s Profiles website by using the sampling method. /Sample is the default method. /Sample cannot be used with /Trace.
/Trace or /t Profiles website by using the instrumentation method. /Trace cannot be used with /Sample.
/Memory[:Type]or /m[:{a|l}] Profiles memory allocation and optionally profiles object lifetimes (garbage collection). /Memory can be used with the sampling or the instrumentation method.

Type can be one of the following:

- allocation (or a) collects memory allocation data only.
- lifetime (or l) collects memory allocation and object lifetime data.

The default Type is allocation.
/Tip or /i Adds detailed ASP.NET request and ADO.NET call information to the profiling data. /Tip can be used with the sampling or the instrumentation method, and it can be used with the /Memory option.
/Output: File or /o:File Specifies the path and file name of the profiling data (.vsp) file.
/NoWait or /n Returns the command prompt immediately so that additional commands can be used in the command prompt window. You must type VSPerfASPNETCmd /Shutdown on a separate command line to turn profiling off.
/PackSymbols[:{on|off}or /p[:{on|off} Embeds symbols (function and parameter names, etc.) in profiling data (.vsp) file.
/Shutdown: Websiteor /d:Website Turns profiling off. Use as the only option on a command line after using the /NoWait option to start profiling, or if the profiler ends unexpectedly. Specify the same url that you used in the original VSPerfASPNETCmd command.
Website The url of the website to be profiled.

See also