Compartir vía


Visual Studio profiler API reference (native)

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

Visual Studio profiler APIs allow you to programmatically control the amount of data collected, and insert both timestamp and profile marks during profiling. To use native APIs, you include VSPerf.h header file and add the VSPerf.lib in your project.

Note

To get the path to the profiling tools, see Specify the path to command line tools.

In this section

CommentMarkAtProfile

CommentMarkProfile

MarkProfile

NameProfile

ResumeProfile

StartProfile

StopProfile

SuspendProfile

PROFILE_CURRENTID

See also