| 662 | |
| 663 | protected: |
| 664 | void PrintHeader(const Run& run) override { |
| 665 | std::ostringstream header; |
| 666 | header << std::left << std::setw(static_cast<int>(name_field_width_)) |
| 667 | << "Benchmark" |
| 668 | << " " << std::right << std::setw(13) << "Time" |
| 669 | << " " << std::setw(15) << "CPU" |
| 670 | << " " << std::setw(12) << "Iterations"; |
| 671 | if (!run.counters.empty()) { |
| 672 | header << " " << std::setw(16) << "Throughput"; |
| 673 | if (run.counters.count("LoadMs") != 0) { |
| 674 | header << " " << std::setw(12) << "LoadMs" |
| 675 | << " " << std::setw(12) << "ConvertMs" |
| 676 | << " " << std::setw(12) << "WriteMs" |
| 677 | << " " << std::setw(12) << "TotalMs"; |
| 678 | } |
| 679 | } |
| 680 | |
| 681 | const std::string line(header.str().size(), '-'); |
| 682 | GetOutputStream() << line << "\n" |
| 683 | << header.str() << "\n" |
| 684 | << line << "\n"; |
| 685 | } |
| 686 | |
| 687 | void PrintRunData(const Run& run) override { |
| 688 | std::ostream& out = GetOutputStream(); |
nothing calls this directly
no test coverage detected