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

Function printRate

cachelib/interface/Stats.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace {
40
41void printRate(std::ostream& os,
42 const char* name,
43 size_t numerator,
44 size_t denominator) {
45 XDCHECK_GT(denominator, 0UL);
46 os << fmt::format(" {}={:.2f}%",
47 name,
48 static_cast<double>(numerator) / denominator * 100.0);
49}
50
51std::ostream& operator<<(std::ostream& os, const Estimates& e) {
52 os << std::endl

Callers 1

printThroughputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected