MCPcopy Create free account
hub / github.com/bytedance/bolt / treeMemoryUsage

Method treeMemoryUsage

bolt/common/memory/sparksql/NativeMemoryManagerFactory.cpp:342–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342std::string BoltMemoryManager::treeMemoryUsage() {
343 std::string str;
344 std::string arrowUsed = succinctBytes(arrowPool_->bytes_allocated());
345 str += fmt::format(
346 "ArrowMemoryPool usage {} reserved {} peak {}\n",
347 arrowUsed,
348 arrowUsed,
349 arrowUsed);
350 str += boltMemoryManager_->treeMemoryUsage();
351 return str;
352}
353
354bool BoltMemoryManager::tryDestructSafe() {
355 // Bolt memory pools considered safe to destruct when no alive allocations.

Callers 3

TEST_PFunction · 0.45
tryDestructSafeMethod · 0.45
OomMessageMethod · 0.45

Calls 2

succinctBytesFunction · 0.85
bytes_allocatedMethod · 0.45

Tested by 1

TEST_PFunction · 0.36