다음을 통해 공유


Use the Profiling Tools from the command-line

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

You can use the command-line tools of Visual Studio Profiling Tools to profile applications at the command prompt and to automate profiling by using batch files and scripting. You can also generate report files at a command prompt. You can use the lightweight stand-alone profiler to collect data on computers that do not have Visual Studio installed.

Note

Enhanced security features in Windows 8 and Windows Server 2012 required significant changes in the way the Visual Studio profiler collects data on these platforms. UWP apps also require new collection techniques. See Performance Tools on Windows 8 and Windows Server 2012 applications.

Common tasks

Task Related Content
Set the location of symbols: To display the names of functions and parameters, the profiler must have access to the symbol (.pdb) files of the profiled binaries. These files should include the symbol files for the Microsoft operating system and applications that you want to view in your analysis. You can use the public Microsoft symbol server to make sure that you have the correct .pdb files for the Microsoft binaries. - How to: Specify symbol file locations from the command line
Profile your application: The command-line tools and options that you use to profile a target application depend on the type of the application, the profiling method, and whether the target is a managed or native application. - Use profiling methods from the command line
- Profile stand-alone applications
- Profile ASP.NET web applications
- Profile services
Create .xml and .csv reports: Profiling at the command prompt creates data files that can be viewed in the interface for Visual Studio. You can also generate .xml or comma-separated value (.csv) files of the data by using the VSPerfReport command-line tool. - Create profiler reports from the command line
- VSPerfReport
Profile code on computers without Visual Studio: You can use the Profiling Tools stand-alone profiler to collect data for applications on computers that do not have Visual Studio installed. - How to: Install the stand-alone profiler

Reference

See also