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

Threshold value calculation to determine critical functions in code

Vasudev_J_
Beginner
443 Views

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
443 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.

0 Kudos
David_A_Intel1
Employee
443 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.

0 Kudos
Vasudev_J_
Beginner
443 Views

Thanks MrAnderson.:)

0 Kudos
Reply