MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TotalMemoryUsage

Method TotalMemoryUsage

src/txgraph.cpp:915–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913}
914
915size_t GenericClusterImpl::TotalMemoryUsage() const noexcept
916{
917 return // Dynamic memory allocated in this Cluster.
918 memusage::DynamicUsage(m_mapping) + memusage::DynamicUsage(m_linearization) +
919 // Dynamic memory usage inside m_depgraph.
920 m_depgraph.DynamicMemoryUsage() +
921 // Memory usage of the allocated Cluster itself.
922 memusage::MallocUsage(sizeof(GenericClusterImpl)) +
923 // Memory usage of the ClusterSet::m_clusters entry.
924 sizeof(std::unique_ptr<Cluster>);
925}
926
927size_t SingletonClusterImpl::TotalMemoryUsage() const noexcept
928{

Callers 5

CopyToStagingMethod · 0.80
SplitMethod · 0.80
MergeMethod · 0.80
AddTransactionMethod · 0.80
SanityCheckMethod · 0.80

Calls 3

DynamicUsageFunction · 0.85
MallocUsageFunction · 0.85
DynamicMemoryUsageMethod · 0.45

Tested by

no test coverage detected