Lines Matching defs:AllocController
58 struct AllocController { struct
59 int copy_constructed = 0;
60 int move_constructed = 0;
62 int alive = 0;
63 int alloc_count = 0;
64 int dealloc_count = 0;
65 int is_equal_count = 0;
67 std::size_t alive_size;
68 std::size_t allocated_size;
69 std::size_t deallocated_size;
71 std::size_t last_size = 0;
72 std::size_t last_align = 0;
96 AllocController() = default; argument
98 void countAlloc(void* p, size_t s, size_t a) { in countAlloc()
108 void countDealloc(void* p, size_t s, size_t a) { in countDealloc()
119 void countConstruct(Alloc const&, Tp *p) { in countConstruct()
128 void countDestroy(Alloc const&, Tp *p) { in countDestroy()
135 void reset() { std::memset(this, 0, sizeof(*this)); } in reset()
136 void resetConstructDestroy() { in resetConstructDestroy()
145 bool checkAlloc(void* p, size_t s, size_t a) const { in checkAlloc()
151 bool checkAlloc(void* p, size_t s) const { in checkAlloc()
156 bool checkAllocAtLeast(void* p, size_t s, size_t a) const { in checkAllocAtLeast()
162 bool checkAllocAtLeast(void* p, size_t s) const { in checkAllocAtLeast()
167 bool checkDealloc(void* p, size_t s, size_t a) const { in checkDealloc()
173 bool checkDealloc(void* p, size_t s) const { in checkDealloc()
178 bool checkDeallocMatchesAlloc() const { in checkDeallocMatchesAlloc()
185 bool checkConstruct(Alloc const&, Tp *p) const { in checkConstruct()
220 DISALLOW_COPY(AllocController); argument