"src/targets/vscode:/vscode.git/clone" did not exist on "647d5dc55037cb1bfc1fc8e3a18b4f378be51a75"
Commit b38c31bb authored by Paul's avatar Paul
Browse files

Format

parent 025d8f8e
......@@ -709,10 +709,8 @@ void program::perf_report(std::ostream& os,
os << std::endl;
os << "Summary:" << std::endl;
std::vector<std::tuple<double, std::size_t, std::string>> op_times_sorted;
std::transform(op_times.begin(),
op_times.end(),
std::back_inserter(op_times_sorted),
[&](auto p) {
std::transform(
op_times.begin(), op_times.end(), std::back_inserter(op_times_sorted), [&](auto p) {
auto&& name = p.first;
return std::make_tuple(p.second, op_n.at(name), name);
});
......@@ -721,7 +719,8 @@ void program::perf_report(std::ostream& os,
{
double percent = std::ceil(100.0 * avg / total_instruction_time);
double per_ins = avg / nn;
os << name << ": " << avg << "ms / " << nn << " = " << per_ins << "ms, " << percent << "%" << std::endl;
os << name << ": " << avg << "ms / " << nn << " = " << per_ins << "ms, " << percent << "%"
<< std::endl;
}
os << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment