MCPcopy Create free account
hub / github.com/catboost/catboost / ClearReturnUsedChunkCount

Method ClearReturnUsedChunkCount

util/memory/pool.h:270–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 inline size_t ClearReturnUsedChunkCount(bool keepFirstChunk) noexcept {
271 return DoClear(keepFirstChunk);
272 }
273
274 inline size_t MemoryAllocated() const noexcept {
275 return MemoryAllocatedBeforeCurrent_ + (Current_ != &Empty_ ? Current_->Used() : 0);

Callers 1

TestMemPoolMethod · 0.80

Calls 1

DoClearFunction · 0.85

Tested by 1

TestMemPoolMethod · 0.64