Using Pause/Resume API

You can target specific sections in your application that you would like to profile by inserting the VTPause() and VTResume() function calls in your code.

You can profile applications with inserted Pause/Resume APIs on a remote system running on a Windows* or Linux* operating system.

To use Pause/Resume API:

  1. Create an Activity and configure your data collector (sampling, call graph).

  2. Prepare your compilation and running environment following the steps in the Before You Begin Controlling Data Collection topic.

  3. Insert the VTPause() call in your code where you want the VTune analyzer to stop data collection.

  1. Insert the VTResume() call in your code where you want the VTune analyzer to resume data collection.

  2. Compile and execute your application.

  3. Click Run Activity (or use the run command  if you work from the command line) to start data collection.

Once the data is collected, you can view the data in the standard collector views.

note

API-related Topics