MCPcopy Create free account
hub / github.com/baidu/babylon / get_hit_summary

Method get_hit_summary

example/use-async-logger/example.cpp:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 return cached_allocator.free_page_num();
69 }
70 static ::bvar::Stat get_hit_summary(void*) {
71 auto summary = cached_allocator.cache_hit_summary();
72 return ::bvar::Stat {summary.sum, static_cast<ssize_t>(summary.num)};
73 }
74 };
75 static ::bvar::PassiveStatus<size_t> pending_size {
76 "test-babylon-pending", S::get_pending_size, nullptr};

Callers

nothing calls this directly

Calls 1

cache_hit_summaryMethod · 0.80

Tested by

no test coverage detected