Dela via


Args

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.

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

Reference

VSPerfCmd

Concepts

Command-Line Profiling of Stand-Alone Applications

Command-Line Profiling of ASP.NET Web Applications

Command-Line Profiling of Services