forked from OSchip/llvm-project
parent
b2c22f00de
commit
67395e7c2c
|
@ -185,7 +185,7 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
||||||
std::cout << std::setw(3) << i+1 << ". "
|
std::cout << std::setw(3) << i+1 << ". "
|
||||||
<< std::setw(5) << FunctionCounts[i].second << "/"
|
<< std::setw(5) << FunctionCounts[i].second << "/"
|
||||||
<< TotalExecutions << " "
|
<< TotalExecutions << " "
|
||||||
<< FunctionCounts[i].first->getName() << "\n";
|
<< FunctionCounts[i].first->getNameStr() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<Function*> FunctionsToPrint;
|
std::set<Function*> FunctionsToPrint;
|
||||||
|
@ -219,8 +219,8 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
||||||
<< Counts[i].second/(double)TotalExecutions*100 << "% "
|
<< Counts[i].second/(double)TotalExecutions*100 << "% "
|
||||||
<< std::setw(5) << Counts[i].second << "/"
|
<< std::setw(5) << Counts[i].second << "/"
|
||||||
<< TotalExecutions << "\t"
|
<< TotalExecutions << "\t"
|
||||||
<< F->getName() << "() - "
|
<< F->getNameStr() << "() - "
|
||||||
<< Counts[i].first->getName() << "\n";
|
<< Counts[i].first->getNameStr() << "\n";
|
||||||
FunctionsToPrint.insert(F);
|
FunctionsToPrint.insert(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue