Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Classes | |
struct | stl_shared_counter |
struct | stl_tree_node |
struct | unordered_node |
Functions | |
static size_t | MallocUsage (size_t alloc) |
Compute the total memory used by allocating alloc bytes. More... | |
static size_t | DynamicUsage (const int8_t &v) |
Dynamic memory usage for built-in types is zero. More... | |
static size_t | DynamicUsage (const uint8_t &v) |
static size_t | DynamicUsage (const int16_t &v) |
static size_t | DynamicUsage (const uint16_t &v) |
static size_t | DynamicUsage (const int32_t &v) |
static size_t | DynamicUsage (const uint32_t &v) |
static size_t | DynamicUsage (const int64_t &v) |
static size_t | DynamicUsage (const uint64_t &v) |
static size_t | DynamicUsage (const float &v) |
static size_t | DynamicUsage (const double &v) |
template<typename X > | |
static size_t | DynamicUsage (X *const &v) |
template<typename X > | |
static size_t | DynamicUsage (const X *const &v) |
template<typename X > | |
static size_t | DynamicUsage (const std::vector< X > &v) |
template<unsigned int N, typename X , typename S , typename D > | |
static size_t | DynamicUsage (const prevector< N, X, S, D > &v) |
template<typename X , typename Y > | |
static size_t | DynamicUsage (const std::set< X, Y > &s) |
template<typename X , typename Y > | |
static size_t | IncrementalDynamicUsage (const std::set< X, Y > &s) |
template<typename X , typename Y , typename Z > | |
static size_t | DynamicUsage (const std::map< X, Y, Z > &m) |
template<typename X , typename Y , typename Z > | |
static size_t | IncrementalDynamicUsage (const std::map< X, Y, Z > &m) |
template<typename X , typename Y > | |
static size_t | DynamicUsage (const indirectmap< X, Y > &m) |
template<typename X , typename Y > | |
static size_t | IncrementalDynamicUsage (const indirectmap< X, Y > &m) |
template<typename X > | |
static size_t | DynamicUsage (const std::unique_ptr< X > &p) |
template<typename X > | |
static size_t | DynamicUsage (const std::shared_ptr< X > &p) |
template<typename X , typename Y > | |
static size_t | DynamicUsage (const std::unordered_set< X, Y > &s) |
template<typename X , typename Y , typename Z > | |
static size_t | DynamicUsage (const std::unordered_map< X, Y, Z > &m) |
Function Documentation
◆ DynamicUsage() [1/21]
|
inlinestatic |
Dynamic memory usage for built-in types is zero.
Definition at line 27 of file memusage.h.
Referenced by CTxMemPool::check(), Coin::DynamicMemoryUsage(), CCoinsViewCache::DynamicMemoryUsage(), CTxMemPool::DynamicMemoryUsage(), RecursiveDynamicUsage(), and CTxMemPool::removeUnchecked().
◆ DynamicUsage() [2/21]
|
inlinestatic |
Definition at line 28 of file memusage.h.
◆ DynamicUsage() [3/21]
|
inlinestatic |
Definition at line 29 of file memusage.h.
◆ DynamicUsage() [4/21]
|
inlinestatic |
Definition at line 30 of file memusage.h.
◆ DynamicUsage() [5/21]
|
inlinestatic |
Definition at line 31 of file memusage.h.
◆ DynamicUsage() [6/21]
|
inlinestatic |
Definition at line 32 of file memusage.h.
◆ DynamicUsage() [7/21]
|
inlinestatic |
Definition at line 33 of file memusage.h.
◆ DynamicUsage() [8/21]
|
inlinestatic |
Definition at line 34 of file memusage.h.
◆ DynamicUsage() [9/21]
|
inlinestatic |
Definition at line 35 of file memusage.h.
◆ DynamicUsage() [10/21]
|
inlinestatic |
Definition at line 36 of file memusage.h.
◆ DynamicUsage() [11/21]
|
inlinestatic |
Definition at line 37 of file memusage.h.
◆ DynamicUsage() [12/21]
|
inlinestatic |
Definition at line 38 of file memusage.h.
◆ DynamicUsage() [13/21]
|
inlinestatic |
Definition at line 85 of file memusage.h.
References MallocUsage(), and X.
◆ DynamicUsage() [14/21]
|
inlinestatic |
Definition at line 91 of file memusage.h.
References prevector< N, T, Size, Diff >::allocated_memory(), and MallocUsage().
◆ DynamicUsage() [15/21]
|
inlinestatic |
Definition at line 97 of file memusage.h.
References MallocUsage().
◆ DynamicUsage() [16/21]
|
inlinestatic |
Definition at line 109 of file memusage.h.
References MallocUsage().
◆ DynamicUsage() [17/21]
|
inlinestatic |
Definition at line 123 of file memusage.h.
References MallocUsage(), and indirectmap< K, T >::size().
◆ DynamicUsage() [18/21]
|
inlinestatic |
Definition at line 135 of file memusage.h.
References MallocUsage(), and X.
◆ DynamicUsage() [19/21]
|
inlinestatic |
Definition at line 141 of file memusage.h.
References MallocUsage(), and X.
◆ DynamicUsage() [20/21]
|
inlinestatic |
Definition at line 157 of file memusage.h.
References MallocUsage().
◆ DynamicUsage() [21/21]
|
inlinestatic |
Definition at line 163 of file memusage.h.
References MallocUsage().
◆ IncrementalDynamicUsage() [1/3]
|
inlinestatic |
Definition at line 103 of file memusage.h.
References MallocUsage().
Referenced by CTxMemPool::UpdateChild(), and CTxMemPool::UpdateParent().
◆ IncrementalDynamicUsage() [2/3]
|
inlinestatic |
Definition at line 115 of file memusage.h.
References MallocUsage().
◆ IncrementalDynamicUsage() [3/3]
|
inlinestatic |
Definition at line 129 of file memusage.h.
References MallocUsage().
◆ MallocUsage()
|
inlinestatic |
Compute the total memory used by allocating alloc bytes.
Compute the memory used for dynamically allocated but owned data structures.
For generic data types, this is not recursive. DynamicUsage(vector<vector<int> >) will compute the memory used for the vector<int>'s, but not for the ints inside. This is for efficiency reasons, as these functions are intended to be fast. If application data structures require more accurate inner accounting, they should iterate themselves, or use more efficient caching + updating on modification.
Definition at line 48 of file memusage.h.
Referenced by CTxMemPool::DynamicMemoryUsage(), DisconnectedBlockTransactions::DynamicMemoryUsage(), DynamicUsage(), and IncrementalDynamicUsage().