MCPcopy Create free account
hub / github.com/facebook/CacheLib / SizeDistribution

Method SizeDistribution

cachelib/navy/common/SizeDistribution.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36} // namespace
37
38SizeDistribution::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
45SizeDistribution::SizeDistribution(std::map<int64_t, int64_t> snapshot) {
46 for (const auto& kv : snapshot) {

Callers

nothing calls this directly

Calls 1

generateSizesFunction · 0.85

Tested by

no test coverage detected