| 319 | Sampler sampler {1 << 16}; |
| 320 | |
| 321 | void addWeighted(size_t read_rows_inc, size_t read_bytes_inc, size_t result_rows_inc, size_t result_bytes_inc, double weight) |
| 322 | { |
| 323 | queries += weight; |
| 324 | read_rows += weight * static_cast<double>(read_rows_inc); |
| 325 | read_bytes += weight * static_cast<double>(read_bytes_inc); |
| 326 | result_rows += weight * static_cast<double>(result_rows_inc); |
| 327 | result_bytes += weight * static_cast<double>(result_bytes_inc); |
| 328 | } |
| 329 | |
| 330 | void sample(double duration) |
| 331 | { |