See the topics About Pause/Resume APIs and Using Pause/Resume APIs for more information on how to use VTPause() and VTResume() APIs in your application to collect sampling data.
In addition to VTPause() and VTResume(), you can also use the following sampling specific pause/resume APIs for sampling data collection.
VTPauseSampling()
VTResumeSampling()
The VTune(TM) Performance Analyzer uses a system-wide flag to determine when to sample. Any thread in any process that calls VTPauseSampling()(or VTPause()) will pause sampling system wide. Likewise, any thread in any process that calls VTResumeSampling() (or VTPause()) will resume sampling system wide.
If you are using the pause/resume API with event-based sampling, a pause causes the VTune analyzer to suspend collecting samples. This decreases the number of events/second sampled. Although the events may still be occurring on the system, the data is not captured.