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

Function RPCLockedMemoryInfo

src/rpc/misc.cpp:534–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534static UniValue RPCLockedMemoryInfo()
535{
536 LockedPool::Stats stats = LockedPoolManager::Instance().stats();
537 UniValue obj(UniValue::VOBJ);
538 obj.pushKV("used", uint64_t(stats.used));
539 obj.pushKV("free", uint64_t(stats.free));
540 obj.pushKV("total", uint64_t(stats.total));
541 obj.pushKV("locked", uint64_t(stats.locked));
542 obj.pushKV("chunks_used", uint64_t(stats.chunks_used));
543 obj.pushKV("chunks_free", uint64_t(stats.chunks_free));
544 return obj;
545}
546
547#ifdef HAVE_MALLOC_INFO
548static std::string RPCMallocInfo()

Callers 1

getmemoryinfoFunction · 0.85

Calls 2

statsMethod · 0.80
pushKVMethod · 0.45

Tested by

no test coverage detected