Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5118 Discussions

turn on/off sampling from the sampled program

Maximillia_D_Intel
521 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
521 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.
0 Kudos
Reply