MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_free_memory

Method get_free_memory

src/core/impl/comp_node/mem_alloc/impl.cpp:150–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150FreeMemStat MemAllocImplHelper::get_free_memory() {
151 MGB_LOCK_GUARD(m_mutex);
152 return get_free_memory_self_unsafe();
153}
154
155std::string MemAllocImplHelper::str_free_info(size_t threshold) {
156 if (m_free_blk_size.size() == 0) {

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36