MCPcopy Create free account
hub / github.com/ElementsProject/elements / DynamicMemoryUsage

Method DynamicMemoryUsage

src/coins.cpp:41–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39CCoinsViewCache::CCoinsViewCache(CCoinsView *baseIn) : CCoinsViewBacked(baseIn), cachedCoinsUsage(0) {}
40
41size_t CCoinsViewCache::DynamicMemoryUsage() const {
42 return memusage::DynamicUsage(cacheCoins) + cachedCoinsUsage;
43}
44
45// ELEMENTS:
46// Create a CCoinsMapKey for non-PEGIN utxo.

Callers 15

ProcessMessageMethod · 0.45
FetchCoinMethod · 0.45
AddCoinMethod · 0.45
SpendCoinMethod · 0.45
BatchWriteMethod · 0.45
UncacheMethod · 0.45
FlushStateToDiskMethod · 0.45
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.45
DisconnectTipMethod · 0.45
VerifyDBMethod · 0.45

Calls 1

DynamicUsageFunction · 0.85

Tested by 5

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
SelfTestMethod · 0.36
InsertCoinsMapEntryFunction · 0.36
FUZZ_TARGET_INITFunction · 0.36