Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4682 Discussions

Threshold value calculation to determine critical functions in code

Vasudev_J_
Beginner
143 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
143 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
143 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
143 Views

Thanks MrAnderson.:)

Reply