Reputation: 2124
I'm simply trying to get the average time it takes each function to run. That means I want the: "Total time inside the function" / "Number of calls to the function"
I'm getting all sorts of information when I run an analysis from within VTune. These are the settings I'm using:
And also:
But I can't find where average time is. I can see the Total-Time per function but can't find the call count.
Using Visual Studio 2012, Vtune Amplifier XE 2013, Update 9.
Please help.
Upvotes: 2
Views: 1263
Reputation: 1684
1) You have to run "Advanced Hotspots" analysis configured like shown in your second screen-shot. "Basic Hotspots" will NOT provide you with call count information.
2) Once you completed "Advanced Hotspots" - you can find statistical (approximate) call count in Bottom-up View as shown in screen-shot below:
Finally, make sure that you have "Loops and functions" mode selected at the bottom right side of GUI (it's true by default, but who knows what options did you play with).
3) In order to figure out total time and self-time don't forget to make sure you changed "viewpoint" to "Hotspots" (see area highlighed in green in my first screen-shot and also see next picture).
4) Starting from 2016 release Parallel Studio has
measurement tool
(as well as total, self and even elapsed time and lots of SIMD-parallelism related analysis) available in "Intel (a ka "vectorization") Advisor", see more info here:
Upvotes: 3