Visual Studio Profiler API Reference (Native)

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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.

System_CAPS_ICON_note.jpg Note

By default, VSPerf.h and VSPerf.lib are located in <drive>:\Program Files\Microsoft Visual Studio 9\Team Tools\Performance Tools\PerfSDK directory.

CommentMarkAtProfile

CommentMarkProfile

MarkProfile

NameProfile

ResumeProfile

StartProfile

StopProfile

SuspendProfile

PROFILE_CURRENTID

Profiling Tools APIs
Walkthrough: Using Profiler APIs

Show: