MCPcopy Create free account
hub / github.com/bytedance/bolt / refreshStats

Method refreshStats

bolt/common/caching/AsyncDataCache.cpp:931–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931CacheStats AsyncDataCache::refreshStats() const {
932 CacheStats stats;
933 for (auto& shard : shards_) {
934 shard->updateStats(stats);
935 }
936 if (ssdCache_ != nullptr) {
937 stats.ssdStats = std::make_shared<SsdCacheStats>(ssdCache_->stats());
938 }
939 return stats;
940}
941
942void AsyncDataCache::clear() {
943 for (auto& shard : shards_) {

Callers 2

TEST_FFunction · 0.80
DEBUG_ONLY_TEST_FFunction · 0.80

Calls 2

updateStatsMethod · 0.45
statsMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
DEBUG_ONLY_TEST_FFunction · 0.64