| 99 | mutable arrow::internal::TDigest latencies; |
| 100 | |
| 101 | void Update(int64_t total_batches, int64_t total_records, int64_t total_bytes) { |
| 102 | std::lock_guard<std::mutex> lock(this->mutex); |
| 103 | this->total_batches += total_batches; |
| 104 | this->total_records += total_records; |
| 105 | this->total_bytes += total_bytes; |
| 106 | } |
| 107 | |
| 108 | // Invoked per batch in the test loop. Holding a lock looks not scalable. |
| 109 | // Tested with 1 ~ 8 threads, no noticeable overhead is observed. |