Lines Matching defs:AllocController
59 struct AllocController { struct
60 int copy_constructed = 0;
61 int move_constructed = 0;
63 int alive = 0;
64 int alloc_count = 0;
65 int dealloc_count = 0;
66 int is_equal_count = 0;
68 std::size_t alive_size;
69 std::size_t allocated_size;
70 std::size_t deallocated_size;
72 std::size_t last_size = 0;
73 std::size_t last_align = 0;
97 AllocController() = default; argument
99 void countAlloc(void* p, size_t s, size_t a) { in countAlloc()
109 void countDealloc(void* p, size_t s, size_t a) { in countDealloc()
120 void countConstruct(Alloc const&, Tp *p) { in countConstruct()
129 void countDestroy(Alloc const&, Tp *p) { in countDestroy()
136 void reset() { std::memset(this, 0, sizeof(*this)); } in reset()
137 void resetConstructDestroy() { in resetConstructDestroy()
146 bool checkAlloc(void* p, size_t s, size_t a) const { in checkAlloc()
152 bool checkAlloc(void* p, size_t s) const { in checkAlloc()
157 bool checkAllocAtLeast(void* p, size_t s, size_t a) const { in checkAllocAtLeast()
163 bool checkAllocAtLeast(void* p, size_t s) const { in checkAllocAtLeast()
168 bool checkDealloc(void* p, size_t s, size_t a) const { in checkDealloc()
174 bool checkDealloc(void* p, size_t s) const { in checkDealloc()
179 bool checkDeallocMatchesAlloc() const { in checkDeallocMatchesAlloc()
186 bool checkConstruct(Alloc const&, Tp *p) const { in checkConstruct()
216 DISALLOW_COPY(AllocController); argument