Zdieľať cez


Specify the path to profiling tools command-line tools

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 path of Visual Studio Profiling Tools command-line tools is not added to the PATH environment variable. On 32-bit computers, the tools are in a single directory. There are 32-bit and 64-bit versions of the profiling tools on 64-bit computers.

32-bit computers

For native code, the Visual Studio profiler APIs are in VSPerf.dll. The header file, VSPerf.h, and the import library, VSPerf.lib, are located in the Microsoft Visual Studio\2017\Team Tools\Performance Tools\PerfSDK directory.

For managed code, the profiler APIs are in the Microsoft.VisualStudio.Profiler.dll. This DLL is found in the Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools directory.

64-bit computers

On 64-bit computers, specify the path according to the target platform of the profiled application.

  • For 32-bit applications, the default profiler tools directory is:

    (native) Microsoft Visual Studio\2017\Team Tools\Performance Tools\PerfSDK

    (managed) Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools

  • For 64-bit applications, the default profiler tools directory is:

    (native) Microsoft Visual Studio\2017\Team Tools\Performance Tools\x64\PerfSDK

    (managed) Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\x64