本文整理汇总了C++中CONTROL::NumPp方法的典型用法代码示例。如果您正苦于以下问题:C++ CONTROL::NumPp方法的具体用法?C++ CONTROL::NumPp怎么用?C++ CONTROL::NumPp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CONTROL
的用法示例。
在下文中一共展示了CONTROL::NumPp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Fini
LOCALFUN VOID Fini(int n, void *v)
{
*outfile << endl;
double whole_MPKI = 1000.0 * (double)bimodal.Mispredicts()/icount.Count();
*outfile << "Whole-program MPKI = " << whole_MPKI << dec << endl;
if (control.PinPointsActive())
{
UINT32 NumPp = control.NumPp();
double predicted_MPKI = 0.0;
*outfile << "PP #," << " %Weight," << " MPKI" << endl;
for (UINT32 p = 1; p <= NumPp ; p++)
{
double weight = (double) ppinfo.ppstats[p].ppWeightTimesThousand/1000.0;
double mpki = (double)ppinfo.ppstats[p].ppMispredicts*1000/ppinfo.ppstats[p].ppInstructions;
*outfile << dec << p << ", " << weight << ", " << mpki << endl;
predicted_MPKI += (double) weight*mpki/100.0;
}
*outfile << "Predicted MPKI = " << predicted_MPKI << dec << endl;
}
}