MCPcopy Create free account
hub / github.com/OpenMW/openmw / getStats

Method getStats

components/resource/multiobjectcache.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 CacheStats MultiObjectCache::getStats() const
81 {
82 std::lock_guard<std::mutex> lock(_objectCacheMutex);
83 return CacheStats{
84 .mSize = _objectCache.size(),
85 .mGet = mGet,
86 .mHit = mHit,
87 .mExpired = mExpired,
88 };
89 }
90
91}

Callers 10

reportStatsMethod · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45
collectStatisticsFunction · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45
reportStatsMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected