Lines Matching refs:reportSum
189 void SubCommandStat::PrintPerValue(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, const f… in PrintPerValue() argument
193 std::string strEventCount = std::to_string(reportSum->eventCountSum); in PrintPerValue()
202 MakeComments(reportSum, commentStr); in PrintPerValue()
206 … reportSum->threadName.c_str(), reportSum->pid, reportSum->tid, reportSum->cpu, commentStr.c_str(), in PrintPerValue()
207 reportSum->scaleSum * ratio); in PrintPerValue()
210 reportSum->cpu, commentStr.c_str(), reportSum->scaleSum * ratio); in PrintPerValue()
213 reportSum->threadName.c_str(), reportSum->pid, reportSum->tid, commentStr.c_str(), in PrintPerValue()
214 reportSum->scaleSum * ratio); in PrintPerValue()
352 void SubCommandStat::MakeComments(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, std::str… in MakeComments() argument
354 if (reportSum->commentSum == 0) { in MakeComments()
357 if (reportSum->configName == "sw-task-clock") { in MakeComments()
358 commentStr = StringPrintf("%lf cpus used", reportSum->commentSum); in MakeComments()
361 if (reportSum->configName == "hw-cpu-cycles") { in MakeComments()
362 commentStr = StringPrintf("%lf GHz", reportSum->commentSum); in MakeComments()
365 if (reportSum->configName == "hw-instructions") { in MakeComments()
366 commentStr = StringPrintf("%lf cycles per instruction", reportSum->commentSum); in MakeComments()
369 if (reportSum->configName == "hw-branch-misses") { in MakeComments()
370 commentStr = StringPrintf("%lf miss rate", reportSum->commentSum); in MakeComments()
374 if (reportSum->commentSum > 1e9) { in MakeComments()
375 commentStr = StringPrintf("%.3lf G/sec", reportSum->commentSum / 1e9); in MakeComments()
378 if (reportSum->commentSum > 1e6) { in MakeComments()
379 commentStr = StringPrintf("%.3lf M/sec", reportSum->commentSum / 1e6); in MakeComments()
382 if (reportSum->commentSum > 1e3) { in MakeComments()
383 commentStr = StringPrintf("%.3lf K/sec", reportSum->commentSum / 1e3); in MakeComments()
386 commentStr = StringPrintf("%.3lf /sec", reportSum->commentSum); in MakeComments()