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

Average Task or Event Time

Matthew_R_2
Beginner
459 Views

I'm currently capturing one task in my program that gets called quite a bit.  During VTune analysis I'd like to see the average time that task took over a selected timeframe. 

Right now in the "Task Time viewport", I can highlight a region on the timeline and see the total task time for that highlighted section by doing a "Filter In By Selection" and that will report the total task time for that region.

Any thoughts on how I can accomplish this, or even just see the number of tasks that were run in the selected timeframe so I can calculate the average myself?

0 Kudos
2 Replies
Vitaly_S_Intel
Employee
459 Views

Hi Matthew!

It is actually not available in the product because average task time doesn't make sense for hierarchical tasks. But if your tasks don't cross over time you may try to load them as frames - there is "Frame Count" metric.

BTW, are you using Task API or CSV import to get tasks? 

0 Kudos
Matthew_R_2
Beginner
459 Views

Hi Vitaly.  Good point about tasks crossing over, I didn't consider that.  In my specific case I'm only using tasks for one self contained piece of code on only one of my threads.

I'm using the Task API.

0 Kudos
Reply