User (VSPerfCmd)

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

The User option specifies the domain and user name of the account that owns the profiled process. This option is required only if the process is running as a user other than the logged on user. The process owner is listed in the User Name column on the Processes tab of Windows Task Manager.

The User option can only be specified on a command line that also contains the Start option option.

Syntax

VSPerfCmd.exe /Start:Method /Output:FileName /User:[Domain\]UserName [Options]  

Parameters

Domain
The name of the user's domain.

UserName
The name of the user.

Required Options

The User option can only be used with the Start option.

Start: Method
Initializes the profiler to the specified profiling method.

Example

The following example demonstrates the use of the User option.

VSPerfCmd.exe /Start:Sample /Output:TestApp.exe.vsp /User:SYSTEM  

See Also

VSPerfCmd
Profiling Stand-Alone Applications
Profiling ASP.NET Web Applications
Profiling Services