共用方式為


Args

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 VSPerfCmd.exe Args option specifies a list of arguments that are passed to the target application of the Launch subcommand.

Args can only be used when Launch is also specified on the command line. Args is optional when Launch is specified.

Syntax

VSPerfCmd.exe /Launch:AppName /Args:Arguments [Options]

Parameters

Arguments A list of arguments to the target application of the Launch command.

Required Options

Launch: AppName Starts the specified application and begins profiling with the sampling method.

Example

The following example uses the Args option to pass arguments to TestApp.exe.

VSPerfCmd.exe /Start:Sample /Output:TestApp.exe.vsp
VSPerfCmd.exe /Launch:TestApp.exe /Args:"123, 'Hello World'"

See also