共用方式為


Creating Portable Profiling Data Files from the Command Line

Note

This article applies to Visual Studio 2015. 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

To make sharing of profiling data easier, you can use the VSPerfReport command-line tool to 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 is quicker to load in the IDE.

Note

Make sure the symbol (.pdb) files are available to VSPerfReport. For more information, see How to: Specify Symbol File Locations from the Command Line.

For information about the path to VSReport, see Specifying the Path to Command Line Tools.

The profiling data in a .vsps file cannot be filtered.

To embed the symbols for a profiling run into a profiling data (.vsp) file

  • At a command prompt window, type the following command:

    <Path>VSPerfReport <VSP File> /PackSymbols

    By default, the .vsps file is named with the base name of the .vsp file. You can specify an alternative name by using the Output option.

To create a summary profiling data file

  • At a command prompt window, type the following command:

    <Path>VSPerfReport <VSP File> /SummaryFile [/Output:<File Name>]

    By default, the .vsps file is named with the base name of the .vsp file. You can specify an alternative name by using the Output option.