Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Vasudev_J_
Beginner
71 Views

Threshold value calculation to determine critical functions in code

One perameter to mark critical function is high CPI, But what are the other perameters to determine that? Specifically in the general exploration result from vtune, in the given formula (when i hovered on pink color CPI):

Threshold: (CPU_CLK_UNHALTED.THREAD / INST_RETIRED.ANY > 1) * (CPU_CLK_UNHALTED.THREAD / > 0.05)

What is this second part (in bold italic). How vtune marks pink color for some CPI values.

0 Kudos
3 Replies
David_A_Intel1
Employee
71 Views

Hi Vasudev,

Great question!  The threshold basically says that the function account for great than 5% of all clockticks (i.e., CPU_CLK_UNHALTED.THREAD) collected during the run.  That is, the function must contribute more than 5% of all the time spent executing the application.

David_A_Intel1
Employee
71 Views

BTW, if you don't like that threshold, you can create your own metrics!  See the User Metrics sdk in C:\Program Files (x86)\Intel\VTune Amplifier XE 2013\sdk\user_metrics (for Windows*) and /opt/intel/vtune_amplifier_xe/sdk/user_metrics (for Linux*), by default.

Vasudev_J_
Beginner
71 Views

Thanks MrAnderson.:)

Reply