| 40 | retries += p->retries; |
| 41 | } |
| 42 | void report() { |
| 43 | cerr << "production statistics" << endl; |
| 44 | vector<pair<const char *, long> > report; |
| 45 | for (auto p : production_stats) |
| 46 | report.push_back(p); |
| 47 | stable_sort(report.begin(), report.end(), |
| 48 | [](const pair<std::string, long> &a, |
| 49 | const pair<std::string, long> &b) |
| 50 | { return a.second > b.second; }); |
| 51 | for (auto p : report) { |
| 52 | cerr << p.second << "\t" << p.first << endl; |
| 53 | } |
| 54 | } |
| 55 | }; |
| 56 | |
| 57 | void stats_collecting_logger::generated(prod &query) |
nothing calls this directly
no outgoing calls
no test coverage detected