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

Method Allocate

util/memory/pool_ut.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 TBlock Allocate(size_t len) override {
18 Check();
19
20 Alloced_ += len;
21 ++Allocs_;
22
23 return TDefaultAllocator::Allocate(len);
24 }
25
26 void Release(const TBlock& block) override {
27 Released_ += block.Len;

Callers 4

TestMemPoolMethod · 0.45
TestAlignMethod · 0.45

Calls 2

CheckFunction · 0.50
AllocateFunction · 0.50

Tested by 4

TestMemPoolMethod · 0.36
TestAlignMethod · 0.36