| 170 | } |
| 171 | |
| 172 | void ThreadQueues::print_breakdown() |
| 173 | { |
| 174 | if (size() > 0) |
| 175 | { |
| 176 | if (size() == 1) |
| 177 | { |
| 178 | cerr << "Spent " << (*this)[0]->timers["online"].full() |
| 179 | << " on the online phase and " |
| 180 | << (*this)[0]->timers["prep"].full() |
| 181 | << " on the preprocessing/offline phase." << endl; |
| 182 | } |
| 183 | else |
| 184 | { |
| 185 | cerr << size() << " threads spent a total of " << sum("online").full() |
| 186 | << " on the online phase, " << sum("prep").full() |
| 187 | << " on the preprocessing/offline phase, and " |
| 188 | << sum("wait").full() << " idling." << endl; |
| 189 | } |
| 190 | |
| 191 | if (sum("random").elapsed()) |
| 192 | cerr << "Spent " << sum("random").full() |
| 193 | << " on correlated randomness generation." << endl; |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | ThreadStats ThreadQueues::total_stats() |
| 198 | { |
no test coverage detected