| 24 | namespace facebook::cachelib::navy { |
| 25 | namespace { |
| 26 | std::vector<uint64_t> generateSizes(uint64_t min, uint64_t max, double factor) { |
| 27 | XDCHECK_GT(factor, 1.0); |
| 28 | std::vector<uint64_t> sizes; |
| 29 | while (min < max) { |
| 30 | sizes.push_back(min); |
| 31 | min = util::narrow_cast<uint64_t>(min * factor); |
| 32 | } |
| 33 | sizes.push_back(max); |
| 34 | return sizes; |
| 35 | } |
| 36 | } // namespace |
| 37 | |
| 38 | SizeDistribution::SizeDistribution(uint64_t min, uint64_t max, double factor) { |
no outgoing calls
no test coverage detected