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

Delay the start of vtune data collection?

don_w_
Beginner
578 Views

I would like to be able to delay the start of collecting of runtime data until a specific point in program lifecycle.  This will allow me to skip the initialization code which is rather lengthy, and tends to obscure the items I want to examine.  As a frame of refrence, with valgrind I was able to set points in my program to tell valgrind to start or stop collection. I could programatically delay the collection starting point until I hit specific parts of the program, or some other trigger. 

Is this sort of thing possible with vtune?  If so, can you point me at the documentation? 

An alternative that would also work:  use vtune to start the application under test, but tell vtune to delay the start of data collection for some specified period of time.  For example, I might ask vtune to wait 60 seconds before starting to collect data.  Then my program would have finished its initialization sequence, and I could start blasting it with the work I want to metric.

Many thanks!

-d

0 Kudos
2 Replies
David_A_Intel1
Employee
578 Views

Yes!  Search the product documentation for "User APIs" and see the __itt_pause and __itt_resume APIs.

There is also an option in the project properties to delay data collection, so both options are available to you.

0 Kudos
Bernard
Valued Contributor I
578 Views
Hi don, please read this link://software.intel.com/en-us/articles/use-new-pause-and-resume-api-from-intel-vtune-amplifier-2011-xe
0 Kudos
Reply