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

Any way to view function data at a particular time?

eruptionsword
Beginner
293 Views

Is there any way to look at function data for a particular time frame? For example, let's say I want tolook at how many times a function is calledstarting from the 5th second after my program begins until the program ends. I tried using Vtune's call graph but that seems only to display function data for the ENTIRE run of the program.

0 Kudos
2 Replies
Peter_W_Intel
Employee
293 Views

Please use Sampling Over Time view function, that helps you to filter data from results based on specific time range, or you can use/call VTuneAPI in your code to control data collection.

Refer tohttp://cache-www.intel.com/cd/00/00/21/93/219345_sampling_vtune.pdf

0 Kudos
David_A_Intel1
Employee
293 Views

Basically, you can use the Pause and Resume control of the VTune analyzer to do what you want. First, configure the activity to "start with data collection paused" and then either use the Pause button in the tool bar or insert calls to the Pause/Resume APIs into your code. Now you can control *when* data is collected.

Regards,

Mr.Anderson

0 Kudos
Reply