Resize the histogram. Note that this resets it (i.e., this does not attempt to redistribute existing counts).
| 191 | // Resize the histogram. Note that this resets it (i.e., this |
| 192 | // does not attempt to redistribute existing counts). |
| 193 | void Resize(size_t num_buckets, T bucket_width) { |
| 194 | buckets_ = std::move(std::vector<std::atomic<uint64_t>>(num_buckets + 1)); |
| 195 | bucket_width_ = bucket_width; |
| 196 | } |
| 197 | |
| 198 | private: |
| 199 | // TODO(melvin): add support for logarithmic binning |
nothing calls this directly
no outgoing calls
no test coverage detected