MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / DynamicMemoryUsage

Method DynamicMemoryUsage

src/coins.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34CCoinsViewCache::CCoinsViewCache(CCoinsView *baseIn) : CCoinsViewBacked(baseIn), cachedCoinsUsage(0) {}
35
36size_t CCoinsViewCache::DynamicMemoryUsage() const {
37 return memusage::DynamicUsage(cacheCoins) + cachedCoinsUsage;
38}
39
40CCoinsMap::iterator CCoinsViewCache::FetchCoin(const COutPoint &outpoint) const {
41 CCoinsMap::iterator it = cacheCoins.find(outpoint);

Callers 15

ProcessMessageFunction · 0.45
FetchCoinMethod · 0.45
AddCoinMethod · 0.45
SpendCoinMethod · 0.45
BatchWriteMethod · 0.45
UncacheMethod · 0.45
FlushStateToDiskFunction · 0.45
UpdateTipFunction · 0.45
DisconnectTipMethod · 0.45
VerifyDBMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
SelfTestMethod · 0.45

Calls 1

DynamicUsageFunction · 0.85

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.36
SelfTestMethod · 0.36
InsertCoinsMapEntryFunction · 0.36