Lines Matching defs:AllocController
60 struct AllocController { struct
61 int copy_constructed = 0;
62 int move_constructed = 0;
64 int alive = 0;
65 int alloc_count = 0;
66 int dealloc_count = 0;
67 int is_equal_count = 0;
69 std::size_t alive_size;
70 std::size_t allocated_size;
71 std::size_t deallocated_size;
73 std::size_t last_size = 0;
74 std::size_t last_align = 0;
98 AllocController() = default; argument
100 void countAlloc(void* p, std::size_t s, size_t a) { in countAlloc()
110 void countDealloc(void* p, std::size_t s, size_t a) { in countDealloc()
121 void countConstruct(Alloc const&, Tp *p) { in countConstruct()
130 void countDestroy(Alloc const&, Tp *p) { in countDestroy()
137 void reset() { std::memset(this, 0, sizeof(*this)); } in reset()
138 void resetConstructDestroy() { in resetConstructDestroy()
147 bool checkAlloc(void* p, std::size_t s, size_t a) const { in checkAlloc()
153 bool checkAlloc(void* p, std::size_t s) const { in checkAlloc()
158 bool checkAllocAtLeast(void* p, std::size_t s, size_t a) const { in checkAllocAtLeast()
164 bool checkAllocAtLeast(void* p, std::size_t s) const { in checkAllocAtLeast()
169 bool checkDealloc(void* p, std::size_t s, size_t a) const { in checkDealloc()
175 bool checkDealloc(void* p, std::size_t s) const { in checkDealloc()
180 bool checkDeallocMatchesAlloc() const { in checkDeallocMatchesAlloc()
187 bool checkConstruct(Alloc const&, Tp *p) const { in checkConstruct()
222 DISALLOW_COPY(AllocController); argument