Home | History | Annotate | Download | only in malloc_debug

Lines Matching refs:Header

50 void TrackData::GetList(std::vector<const Header*>* list) {
51 for (const auto& header : headers_) {
52 list->push_back(header);
56 std::sort(list->begin(), list->end(), [](const Header* a, const Header* b) {
62 void TrackData::Add(const Header* header, bool backtrace_found) {
67 headers_.insert(header);
71 void TrackData::Remove(const Header* header, bool backtrace_found) {
73 headers_.erase(header);
80 bool TrackData::Contains(const Header* header) {
82 bool found = headers_.count(header);
88 std::vector<const Header*> list;
92 for (const auto& header : list) {
94 header->real_size(), debug_->GetPointer(header), ++track_count, list.size());
96 BacktraceHeader* back_header = debug_->GetAllocBacktrace(header);
102 g_dispatch->free(header->orig_pointer);
122 std::vector<const Header*> list;
127 for (const auto& header : list) {
128 BacktraceHeader* back_header = debug_->GetAllocBacktrace(header);
130 memcpy(data, &header->size, sizeof(size_t));
135 *total_memory += header->real_size();