Community
cancel
Showing results for 
Search instead for 
Did you mean: 
69 Views

turn on/off sampling from the sampled program

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
69 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