| 36 | } // namespace |
| 37 | |
| 38 | SizeDistribution::SizeDistribution(uint64_t min, uint64_t max, double factor) { |
| 39 | auto sizes = generateSizes(min, max, factor); |
| 40 | for (auto size : sizes) { |
| 41 | dist_.emplace(size, AtomicCounter{}); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | SizeDistribution::SizeDistribution(std::map<int64_t, int64_t> snapshot) { |
| 46 | for (const auto& kv : snapshot) { |
nothing calls this directly
no test coverage detected