| 531 | } |
| 532 | |
| 533 | void |
| 534 | Bookkeeper::output_counters(std::ostream &out, const char* prefix_msg, |
| 535 | const char* breakdown_msg, const std::vector<int> &counters, int starting_pos) |
| 536 | { |
| 537 | assert(prefix_msg && breakdown_msg); |
| 538 | formated_output(out, prefix_msg, calc_total(counters)); |
| 539 | out << "breakdown:" << std::endl; |
| 540 | for (size_t i=starting_pos; i<counters.size(); i++) { |
| 541 | out << " " << breakdown_msg << ": " << i << ", occurrence: " << counters[i] << endl; |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | void incr_counter(std::vector<int>& counters, int pos) |
| 546 | { |
nothing calls this directly
no test coverage detected