Commit aa5e156d authored by Paul's avatar Paul
Browse files

Formatting

parent fca4cca1
...@@ -386,9 +386,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params) ...@@ -386,9 +386,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params)
double calculate_overhead_time = total_time - total_instruction_time; double calculate_overhead_time = total_time - total_instruction_time;
double calculate_overhead_percent = calculate_overhead_time * 100.0 / total_time; double calculate_overhead_percent = calculate_overhead_time * 100.0 / total_time;
print_program( print_program(os, *this, [&](auto ins, auto&&) {
os, *this, [&](auto ins, auto&&)
{
double avg = common_average(ins_vec[ins]); double avg = common_average(ins_vec[ins]);
double percent = std::ceil(100.0 * avg / total_instruction_time); double percent = std::ceil(100.0 * avg / total_instruction_time);
os << ": " << avg << "ms, " << percent << "%"; os << ": " << avg << "ms, " << percent << "%";
...@@ -396,7 +394,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params) ...@@ -396,7 +394,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params)
os << std::endl; os << std::endl;
os << "Summary:" << std::endl; os << "Summary:" << std::endl;
for(auto&& p:op_times) for(auto&& p : op_times)
{ {
auto&& name = p.first; auto&& name = p.first;
double avg = p.second; double avg = p.second;
......
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