Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4679 Discussions

turn on/off sampling from the sampled program

Maximillia_D_Intel
184 Views
Hi,
I have a program where I would like sampling to begin at a specified point. Instead of using the option that let's me begin sampling after so many seconds, I'm wondering if there's a method where my sampled program can tell the performance counters to start and stopcounting.
I remember something about __int3, but it has been some time since I have used Vtuneat this level.
Thanks,
Max
0 Kudos
1 Reply
David_A_Intel1
Employee
184 Views
Hi Max:
Check out the Pause/Resume APIs in the User's Guide (/opt/intel/vtune/doc/users_guide/SH_Pause_Resume_APIs.htm). By adding calls to VTPause() and VTResume(), you can control when data is collected.
Reply