Partilhar via


LineOff

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

By default, the profiler collects the source code line number and line number offset data when you are using the sampling profiling method. The VSPerfCmd LineOff option disables line number data collection when VSPerfCmd is used to start the application. Profiling data is collected to the function level when LineOff is specified.

You can use LineOff only with the Launch option, and only when the profiler has been initialized to sampling by using the Start:Sample option.

Syntax

VSPerfCmd.exe /Launch:AppName /LineOff [Options]

Parameters

None

Required Options

The LineOff option can only be used on a command line that contains the Launch option.

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

Example

This example starts the application and the profiler, and disables line-level sampling.

VSPerfCmd.exe /Start:Sample /Output:TestApp.exe.vsp
VSPerfCmd.exe /Launch:TestApp.exe /LineOff

See also