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

Function MemUsage

src/logging.cpp:377–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static size_t MemUsage(const util::log::Entry& log)
378{
379 return memusage::DynamicUsage(log.message) +
380 memusage::DynamicUsage(log.thread_name) +
381 memusage::MallocUsage(sizeof(memusage::list_node<util::log::Entry>));
382}
383
384BCLog::LogRateLimiter::LogRateLimiter(uint64_t max_bytes, std::chrono::seconds reset_window)
385 : m_max_bytes{max_bytes}, m_reset_window{reset_window} {}

Callers 1

LogPrint_Method · 0.85

Calls 2

DynamicUsageFunction · 0.85
MallocUsageFunction · 0.85

Tested by

no test coverage detected