示例#1
0
void SamplerSMARTS::updateCPI(FlowID fid){
  //extract cpi of last sample interval 
 
  estCPI = getMeaCPI();
  return; 

}
示例#2
0
void SamplerPeriodic::loadPredCPI()
{
  if (!BootLoader::getPowerModelPtr()->predictionStatus())
    estCPI = getMeaCPI();

  updateIntervalRatio();
}
示例#3
0
void SamplerPeriodic::dumpCPI() {
  static bool first = true;
  static FILE *log;
  if (first) {
    log = genReportFileNameAndOpen("cpi_");
    first = false;
  }

  fprintf(log, "fid%d %g\n", sFid, getMeaCPI());
}
示例#4
0
void SamplerPeriodic::insertNewCPI() {
  cpiHist[headPtr] = getMeaCPI(); 
}