| 209 | Sampler sampler {1 << 16}; |
| 210 | |
| 211 | void add(double seconds, size_t read_rows_inc, size_t read_bytes_inc, size_t result_rows_inc, size_t result_bytes_inc) |
| 212 | { |
| 213 | ++queries; |
| 214 | work_time += seconds; |
| 215 | read_rows += read_rows_inc; |
| 216 | read_bytes += read_bytes_inc; |
| 217 | result_rows += result_rows_inc; |
| 218 | result_bytes += result_bytes_inc; |
| 219 | sampler.insert(seconds); |
| 220 | } |
| 221 | |
| 222 | void add(const Stats & rhs) |
| 223 | { |
no test coverage detected