Threshold value calculation to determine critical functions in code

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.

4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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.

Regards, MrAnderson

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.

Regards, MrAnderson

Thanks MrAnderson.:)

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi