ZivS
ZivS

Reputation: 2124

Performance Measurement - Get Average call time per function. Intel Vtune Amplifier

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:

Basic Hotspot Settings

And also:

Advanced Hotspot Settings

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

Answers (1)

zam
zam

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:

enter image description here

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). enter image description here

4) Starting from 2016 release Parallel Studio has

  • "precise loop call count and trip count"
  • "precise function call count"

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: enter image description here

Upvotes: 3

Related Questions