共用方式為


Create profiler reports 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

The VSPerfReport command-line tool enables you to create .xml or comma-separated value (.csv) reports from profiling data (.vsp) files. VSPerfReport report types closely match the table-based views of the interface for Visual Studio. You can filter the report to show only your code and to show only a segment of the profiling data file. For more information, see VSPerfReport.

You can also make your profiling data files easier to share by embedding symbols in the .vsp files and by creating pre-analyzed report (.vsps) files that are smaller and quicker to open.

Common tasks

Task Related Content
Create a basic report. Create all or a subset of the VSPerfReport report types. - Create basic reports
Compare two profiling data files. Create a "diff" report that compares performance data in two profiling data files. - How to: Create a profiler comparison report from a command prompt
View call trace and Event Trace for Windows (ETW) data. Create a call trace report that lists timing information for each entry and exit point to your application's functions and each call to other functions by your function. Or create a detailed listing of all ETW events that were collected in a profiling run. - How to: Create a call trace report
Filter a report. Limit a report to only the functions in your code or to a specific time in the profiling data file. - How to: Filter reports from the command line
Create portable profiling data files. To make sharing of profiling data easier, you can embed the symbols for a profiling run into the .vsp file. You can also create a pre-analyzed profiling data (.vsps) file that is smaller and quicker to open. - Create portable profiling data files